A7PU mitsubishi

download A7PU mitsubishi

of 188

description

user manual a7pu mitsubishi

Transcript of A7PU mitsubishi

  • REVISIONS %The manual number is given on the bottom left of the back cover.

    Print Date

    [ Correction I IB (NA) 66051-D Apr., 1989 Revision 'Manual Number

    Page 1-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 General Purpose Programmable Controllers. Please read this manual carefully so that the equipment is used to i t s optimum, A copy of this manual should be forwarded to the end User.

    I8 INAI 66051-A

  • CONTENTS

    1 . GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 - 1-2 2 . SYSTEM CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 - 2-4 2.1 Applicable System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 2.2 System Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4

    3 . SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 - 3-6 3.1 General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.2 A7PU Performance Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 3.3 Connection Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5

  • 4.1 Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4.2 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 4.3 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6

    5 . STARTING PROCEDURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 - 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.6 Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -5-1 6 5.7 Clear of Keyword and Sequence Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES . . . . . . . . . . . . . . . . . . . . . 6.1 6-101 6.1 Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 6.2 Screen Display and General Operation Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 6.3 Instruction Input Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9 6.4 Write Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.12

    6.4.1 All clear (Consecutive write of NOP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15 6.4.2 Write of program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.19

    6.5 ReadMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24 6.5.1 Read by step number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.25 6.5.2 Read by instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.28 6.5.3 Read by device number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.33

    6.6 Insert/Delete Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.35 6.6.1 Insertion of instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.36 6.6.2 Deletion of instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.39

  • 6.7 Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.41 6.7.1 Monitor of X, Y . M. L. B. and F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.42 6.7.2 Monitor of D. W. R. A. 2 . and V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.44 6.7.3 Monitor of T/C present value and contact ON/OFF status . . . . . . . . . . . . . . . . . . . . . . . 6.47 6.7.4 Continuity check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.49 6.7.5 Monitor of offline switch ( Y . M. L. B. F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.54

    6.8 Test Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.56 6.8.1 Set/reset of X. Y . M. L. B. and F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.58 6.8.2 Present value change of T. C. D. W. R. A. 2. and V . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.61 6.8.3 Set/reset of offline switch ( Y . M. L. B. F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.64 6.8.4 Program check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.67

    6.8.6 Read/write in machine language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.70 6.8.5 Reading the error step and error description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.69

    IB INA) 66051-A

  • 6.9 Parameter Setting Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.73

    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.1 Clearing of parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.82

    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.1 Operation Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 7.2 General Operation for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 7.3 Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 7.4 Setting of Processed Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 7.5 Setting of Program Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 7.6 Setting of Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.10 7.7 Setting of Completion Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -7-12 7.8 Execution Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.13

    8 . ERROR MESSAGE LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 8-14 8.1 Error Messages for Programming Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 8.2 Error Messages for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5 8.3 Error Number and Error Message List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7

    .......... .......

  • APPENDICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APP-1-APP-4

    APPENDIX 1 Level Matching of Audio Cassette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APP-1 APPENDIX 2 Processing Time for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . APP-2 APPENDIX 3 External Dimension Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APP-4

  • 1 . GENERAL DESCRIPTION / MELSEC-A 1. 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 Manual describes 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 AOJ2CPU I X I 0 I . ~~. - A1 CPU, A1 ECPU, A1 NCPU

    0 0 A3CPU, ASECPU, A3NCPU 0 0 A2CPU, A2ECPU, A2NCPU 0 0

    I A3HCPU I X I 0 I

    I5 1NAl 66051-D

  • 1. GENERAL DESCRIPTION / ~- MELSEC-n After unpacking, make sure that the package includes the following products.

    I Description I Quantitv I Type A7PU programming unit

    1 Type J-1 cable (for connection with audio cassette recorder) 1 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

  • 2. SYSTEM CONFIGURATION /MELSEC-A 2. SYSTEM CONFIGURATION

    This chapter describes system configurations with which the PU may be used.

    2.1 Applicable System

    The PU has a programming function and an audio cassette function. I f may be used in the following two ways in conjunction with the A series PC:

    1 ) Add-on system: The PU is connected directly onto the A series CPU.

    2) Hand-held system: The PU is connected to the A series CPU with the AC30R4 (AC300R4) cable (for AGGPP).

    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 have an H before the date of manufac1:ure may be used with the A3HCPU (P21/R21). The name plate shown below indicates the date of manufacture.

    A7PU

    --- - - . 8

    DATE ; :::703:.::: Year (Last digit of the year) Date o f manufacture I . I

    - - _ _ _ - *

    2-1 a I8 INAI 6f

  • 2. SYSTEM CONFIGURATION /MELSEC-A 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 Remarks Description

    A7PU Programming unit * Programming unit with LCD indicator * Equipped with programming function and audio cassette function . Connection cable between A series CPU and A7PU. Length 3 m. Connection cable between A series CPU and A7PU. Length 30 m.

    AC30 R4 RS-422 Cable

    AC300R4 RS-422 Cable . 1 J-1 I Cable for audio cassette I 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 Specifications Operating

    Ambient temperature 0 to 40C

    Storage -20 to 50C

    Operating 85%RH or less (no condensation) Ambient humidity Storaqe 10 to 90%RH or less (no condensation)

    Frequency

    (1 octave/minute) - 55 to 150Hz 1P 10 times 0.075mm - 10 to 55Hz

    Sweep count Amplitude Acceleration Vibration resistance Conforms to JIS C9011.

    ~~~

    Shock resistance Conforms t o JIS C0912. (109. 3 times in each of X, Y , and 2 directions) J Table 3.1 General Specifications of A7PU (Continue)

    3- 1 IB INAl 6

  • 3. SPECIFICATIONS / MELSEC-A Item Specifications

    Operating ambience I There should be no corrosive aases and dust should be minimum. I Cooling system Selfcooling J

    Table 3.1 General Specifications of A7PU

    3-2 18 INA) 66051-A

  • 3. SPECIFICATIONS /MELSEC-A __- 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 Power supplied from connected A CPU (5V DC, 0.3A)

    Add-on

    Display of 16 characters x 2 lines (with cursor) (liquid crystal display) Connected by AC30R4 cable. Hand-held

    Loaded to A series CPU directly, Connection system

    Display system EquiDDed with illumination for the display

    I Operation system 54 operation keys (Covered by polyurethane film) Kev omration check Buzzer I ~~~ ~ ~ ~ ~~~~~

    Applicable audio cassette Domestic audio cassette recorder (See Appendix 1 ) .

    Audio cassette interface (particularly home computer types) Applicable tape Any domestlc cassette tape

    Transmission speed 1 OOmVpp/SVp-p Record output/replay output

    600 BPS

    Table 3.2 Performance Specifications of A7PU (Continue) 3-3 IB lNAI

  • 3. SPECIFICATIONS / MELSEC-A I Item I Snecifications 1

    I -.--- - - ~ External dimensions mm (inch) 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).

    Weight kg (Ib) 0.5 (1.1) J Table 3.2 Performance Specifications of A7PU

    3-4 IB (NAI 66051-D

    ._I_ I.._. ~ ... ... ,

  • 3. SPECIFICATIONS / _____ MELSEC-A 3.3 Connection Cables

    The specifications of connection cables required for the PU are as indicated below.

    (1) AC30R4 cable r

    Item Specifications Connected CPU Between A series CPU and A7PU

    Length rn ( f t ) 3 (9.841 Weight kg (Ib) 0.5 (1.1) I

    Table 3.3 AC30R4 Cable

    (2) AC300R4 cable Item Specifications

    Connected CPU Between A series CPU and A7PU Length m ( f t )

    5 (11) Weight kg (Ib) 30 (98.4)

    Table 3.4 AC300R4 Cable

    3-5 IB fNA

  • 3. SPECIFICATIONS / MELSEC-A (3) J-1 cable

    Item Specifications Connected unit Between A7PU and audio cassette recorder Length m ( f t )

    0.03 (0.07) Weight kg (Ib) 2 (6.56)

    Table 3.5 J-1 Cable

    3-6 -

    IB INA) 66051-D

  • 4. HANDLING / MELSEC-A 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 to the CPU via 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 cartridge container and do not remove the ROM cartridge located inside.

  • 4. HANDLING / MELSEC-A

    (1) When designing the system, ensure that all protective and safety circuits are located outside the PC.

    (2) Static electricity will damage the components on the printed circuit board therefore:

    1) Ground human body and work bench. 2) Do not touch the conductive areas of the printed circuit board or the components with any

    non-grounded material.

  • 4. HANDLING / -- MELSEC-A 4.2 Nomenclature

    The nomenclature of the PU i s indicated in Fig. 4.1 and Fig. 4.2.

    I

    Liquid crystal display

    Connector for AC30R4 cable (with protection cap) (Used for hand-held system)

    details, refer to Fig. 4.3.)

    Holder for storage

    onnector for audio cassette

    of protective

    I Fig. 4.1 Nomenclature of A7PU (front)

    4-3 1 1 3 (NAt 6M

  • 4. HANDLING / MELSEC-A

    (Used for direct connection with CPU)

    mot open) cartridge container

    Fig. 4.2 Nomenclature of A7PU (rear)

  • 4. HANDLING

    The arranaement of operation keyboard is shown in Fig. 4.3.

    Instruction keys (Instruction indicated at top) Device number setting keys (0 t o F at bottom)

    Instruction keys

    Device keys (Instruction indicated a t top)

    (Code lndtcated a t bottom)

    Fig. 4.3 Arrangement of Operation Keyboard

    - 4-5 I8 #!

  • 4. HANDLING / MELSEC-A 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 50C. 2) Ambient humidity i s outside the range 10 to 90%RH. 3) Condensation occurs due to sudden temperature changes. 4) Anywhere that the PU may be subjected to wind and rain or the direct rays of the sun. 5) Anywhere that there are excessive amounts of conductive powders, 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

    . . -. .. . ..

  • 4. HANDLING / ___- MELSEC-A (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 every six months.

    4-7 IB INA) 6M)5

  • 5. STARTING PROCEDURES / MELSEC-A 5. STARTING PROCEDURE

    5.1 Starting Procedure and General Operation Procedure

    I Connect PU to CPU 1 . , . . . .Refer t o Section 5.2. . . . . . .Refer t o Section 5.3.

    When A7PU is loaded to AOJ2CPU or entry code has not been set . . . . . .Refer t o Section 5.4.

    Function selection >. . , . . .Refer t o Section 5.5.

  • 5. STARTING PROCEDURES / MELSEC-A 5.2 Connecting and Disconnecting to and from the A Series CPU

    The PU can be connected and disconnected to and from the PC while i t is running. I f 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 to Fig. 5.4.

  • 5. STARTING PROCEDURES / MELSEC-A

    r ( 1 ) Connecting procedure

    1) Remove the CPU connector cap. 2) Remove the RS422 connector protective

    cap a t the rear of the PU. Store the pro- tective cap by clipping i t to the lugs on the bottom of the PU. (Refer to Fig. 5.5.)

    3) As shown a t left, connect the PU and the PC.

    4) Tighten the PU fixing screws.

    (2) Operation Perform operation according to Chapter 6 or Chapter 7.

    I Fig. 5.1 Connection and Disconnection Procedures for direct connection with cpu.

    5-3 I6 INA) 66051-A

  • 5. STARTING PROCEDURES / MELSEC-A

    (3) Disconnecting procedure 1 ) Press the IcL( key. 2 ) Remove the PU fixing screws. 3) Unload the PU from the CPU. 4) Fi t the RS422 connector protective cap to

    5) Fit the CPU connector cap. the rear of the PU.

    5-4 IB LNAl 66(

  • 5 . STARTING PROCEDURES / MELSEC-A

    ( 1 ) Connecting procedure Remove the CPU connector cam Remove the protective cap from the con- nector a t the top of the PU. Store the pro- tective cap by clipping i t to 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 to the RS422 socket on the CPU and tighten the fixing screws.

    12) Operation Perform operation according to Chapter 6 or Chapter 7.

    . . --. -- I t //

    Fig. 5.2 Connecting and Disconnecting Procedures for Remote Connection with CPU *-..

  • 5. STARTING PROCEDURES / -___ M ELSEC-A

    (3) Unloading procedure 1 ) Press the key. 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) Disconnect the AC30R4 cable from the PU. 4) Fit the protection cap to the connector on

    the top of the PU.

    For connecting ans disconnecting of the AC30R4 cable to and from the connector a t the top of the PU, refer to Fig. 5.3.

    5-6 IB INAI

  • 5. STARTING PROCEDURES / MELSEC-A

    Connection of PU and AC30R4 cable Insert the 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 button in the

    2) With the button pressed, pull the connector direction of arrow 0. in the direction of arrow 0.

    Fig. 5.3 Connecting and Disconnecting of PU and AC30R4 Cable

    5-7 . .

    IB INAl 66051-A

    _-^ -- -- .. _ _ . -. _l_l I_ -. . . - . . . . . . . , . . .

  • 5. STARTING PROCEDURES / ~- MELSEC-A

    \ J-1 cable

    (1) J-1 to PU As shown on the left, connect the cable to 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.

    Connect the cable to the earphone terminal or equivalent of audio cassette recorder.

    0 Read and verify modes

    Fig. 5.4 Connection with Audio Casette

    5-8 IB (NA) I

  • 5 . STARTING PROCEDURES / MELSEC-A

    Fig. 5.5 Storing of protective cap 5-9

    18 INA) 66D51-A

  • 5. STARTING PROCEDURES /MELSE,C-A 5.3 Checking of CPU Type

    Basic Operation @

    ( 1 ) By the input of When an entry code has been specified, proceed to Section 5.4. When the A7PU is loaded into the AOJ2CPU or an entry code has not been specified, proceed to Section 5.5.

    (2) When the PU is connected with the CPU or the PU is reset (refer to Section 5.6), the following screen is displayed.

    Displays the connected CPU type. &-'Displays the ROM cassette type loaded to the PU.

    :Displays the PU version.

  • 5. STARTING PROCEDURES / MELSEC-A I R E M A R K S J After the PU i s connected to the CPU, i t takes 3 to 5 seconds unt i l the screen shown on the left is displayed. Before this screen is displayed, the status of screen i s as shown below. (The same applies during communication with the ACPU.)

    Flicker-

    5-1 1 IB INAJ 66051-A

    .. __ . ._ ., -. - --

  • 5. STARTING PROCEDURES /MELSEC-A __.-- 5.4 Checking of Keyword (or Entry Code) (only applicable if an entry code has been entered into the

    parameters)

    f -J Basic Operation [Entry code input operation] +m

    Only the device number setting keys (0 to F) may be pressed, \ 1

    Operation Procedure \ K E Y W 0 R D : I A C O B I t 4 Entry code When entry code coincides K E Y W O R D = O K When entry code does not coincide K E Y W O R D = N G /

    indicates that the 0 or 0 key i s input. - 5-1 2

    IB INAl 66

  • 5. STARTING PROCEDURES /MELSEC-A 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 ) Input the six digit hexadecimal data using the device number setting keys. 2 ) Check the keyword. After OK/NG has been 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 of X, Y , M, L, B, and F

    Monitor mode 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-1 3 IB iNAl 66051-A

    -- - . ... ,, ,. . -.- .... - . .. ._-- - - ..

  • 5. STARTING PROCEDURES / -_- MELSEC-A 5.5 Function Selection

    [ Basic Operation I 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!

  • 5 . STARTING PROCEDURES / MELSEC-A Select either the programming function or the audio cassette function. By pressing the key, the display screen changes as shown below. By the input of /':'I key, the screen display function is selected.

    m -

    t P R O G R A M M I N G . . , , , .Programming function

    U H C A S S E T T E M T

    1 . . . . , .Audio cassette function I O H

    I U/sFT/

    D u R I . . . . . .Programming function during CPU run PROGRAMMING >x_Cep_t _Ac_p-u- - -0 H

    . . , . , .Programming function of subprogram / P R O G R A M M I N G ( S U B ) (Only ABCPU. A3HCPUJ

    D U R I N G R u N . . . . . Subprogram programming function during CPU run / P R O G R A M M I N G ( S U B ) (Only A3CPU. AIHCPU) n - V M

    I I 5-1 5 IB lNAl 66051.8

  • 5. STARTING PROCEDURES / -- MELSEC-A 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 is necessa-

    ry to reset.

    5-1 6 IB (NA) 6M151

  • 5. STARTING PROCEDURES / MELSEC-A 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 pro- grams must be cleared.

    f .

    i ,

    Operation Procedure K E Y W O R D r A L L C L R

    I Only the key codes displayed at the bottom of operation keys are valid.

    L+ ...... n..u .... C . L R .... j : 2 o i , * * * * * * * * * * I 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.

    3- I I IB INAi 6W51-A

  • 5. STARTING PROCEDURES / ___- MELSEC-A

    When the clear operation described is performed, all sequence programs are cleared and the para- meters changed to default values.

    5-1 8 15 (NAI 6(

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES IMELSEC-A 6. PROGRAMMING FUNCTION OPERATION PROCEDURES

    The following six programming functions are available:

    Read . , . , , , . , . , .For reading a program by step number, instruction, device number, etc. Write . , , , , . . , . . .For writing a program. Programs may be written to the CPU while it is running. Insert/delete . . , . , . .For inserting and deleting instructions. Monitor . , , . . , , . .For monitoring the specified device number, data register, offline switch, etc. Test. , . , , . . , , . . .For forcing devices ON/OFF, changing the present value of data registers,

    switching devices ON/OFF line, checking of programs, reading step numbers of errors and reading/writing of programs in machine code.

    Programming function

    Parameter setting . . . .Mode to set the parameters of the ACPU. "During CPU run" means in run status or in step run status.

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES

    6.1 Mode Selection

    Basic Operation [Mode key input]

    @. , , , .Insertion/deletion mode Mode key

    k o TEST . . . . .Test mode t- @. . , . .Parameter mode

    Indicates the abbreviation

    the top left of screen. for the mode displayed at

    (R)

    These mode keys may be used a t any time during programming.

    6-2 IB INAI 6605

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.2 Screen Display and General Operation Procedure ( 1 ) Mode and indication of key The selected mode is displayed.

    operation During communication with ACPU, the cursor flickers I

    Valid key display When a mode other than parameter mode has been selected, the valid operation for use of the keys is indicated.

    C- Indicates the area A of keyboard. -Indicates the area B of 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.

    The lower key functions in area 6 are valid.

    6-3 IB iNAl 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (2) Handling of @ key

    The control and display of valid keys is automatically performed by the PU. However, when i t is necessary to change this, press the shift (SFT) key. By pressing the shift key, the key operations change as shown below. (The 0 mark indicates a @ key operation.) 5 7 1

    U 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 i s 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 to declare a step number. When the @key is pressed, the display of key operation changes to the following,

    $ 7 1 - The lower key codes in area A are valid. - - The lower key codes i n area B are valid. 0 and keys 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. PROGRAMMING FUNCTION OPERATION PROCEDURES / -___ MLSEC-A (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 are alternately displayed a t the cursor position.

    1

    ( 8 ) Numeral display * A decimal number is displayed with zero suppression.

    Example: mmmm - ~ K [;:I On I

    * A hexadecimal number is displayed in 4 digits or 8 digits without zero suppression. * Zero suppressed Example:

    DDmB - p Hr-11 On (9) Device display

    + Sero displayed

    When there are two or more devices in a basic instruction a comma is provided after the instruction to indicate which of the devices is currently displayed in the lower portion of the screen.

    6-6 IB (NAI

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Example:

    R 1 0 0 F R O M I do 0 1 " STP key input /R 1 0 0 F R O M , 1 I I O 1 . ' '

    R 1 0 0 F R O M , , 0 " 6 key irtput

    IR I O 0 F R O M , , , I K I 1 . .

    .First device (no comma)

    Second device (one comma after FROM)

    .Third device ( two commas)

    .Fourth device (three commas)

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MtLorta-r,

    (101 Step number display Step numbers are displayed in decimal. When two five figure step numbers are being displayed they appear as shown on the right.

    function indication the lower 4 digits of step number are displayed. Area reserved for

    f-The step number is displayed in 5 digits

    6-8 I8 (NAI 66r

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / _-_- MELSEC-A I REMARKS I

    ...... In the above instruction input, the input o f !key can be omitted.

    I .

    i.SP.8

    Instructions other than the above Press the key between the instruction and device and between source data and 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-1 0 IB INAi ff

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Example: Assume that the parameter setting is MO to 999 and L1000 to L2047

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A 6.4 Write Mode

    Write mode is used to write a new program to the RAM of the programmable controller CPU or modify a program. For write operation in machine language, refer to Section 6.8.6 (page 6-70).

    ( 1 ) Write during run Wri te 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 num-

    (b) Both the instruction prior to the write operation and the instruction to be written should not be ber of steps) as that replacing it.

    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 be made in test mode. For the operation procedure and other details, refer to Section 6.8.4 (page 6-67).

    6-1 2 IB (NAI 66051-P

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (3) Sequence program capacity

    When the sequence program capacity is set to nK steps, the number of usable steps is as described below:

    0 to (n x 1024 - 2) steps Example: In the case of 2K steps

    0 to 2 x 1024 - 2 = 0 to 2046 (= 2047 steps) When microcomputer program capacity has been 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 microcomputer program capacity to 2K bytes

    0 to [ (7 - 2/2) x 1024 - 11 = 0 to 6143 (= 6144 steps) The relation between the RUNETOP key switch positions of CPU unit and the write conditions is as indicated below.

    Key Switch Position of CPU Unit

    R U N PAUSE I STEP RUN STOP -~ ~ ~

    Programming function ~~ ~ ~~~~~ ~~~~~~~ ~ ~~~~~ ~~~~~~~ ~ ~ ~

    X

    0 0 0 0 Programming function during CPU run

    X 0 0

    pEGiEZ~ 0 mark: Write enabled For the AOJSCPU, PAUSE and STEP RUN are not available. X mark: Write disabled

    6-1 3 18 INAI 66051-A

    ,. . - . I.,

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES rnSEC-A -- The basic operation in write mode is as described below,

    Write

    Item

    All clear (Batch write

    of NOP)

    Write of program

    Basic Omration I In write mode

    In write mod6 I - - - - -1

    In read, insert/delete, Instruction display operation in read, x monitor mode [ insert/delete, or monitor mode

    --+ indicates operation to be performed when step number is displayed.

    - 6-1 4 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

    * Operation from read, insert/delete, I Or monitor mode Instruction display operation in read,

    I

    [ insert/delete, or monitor mode \ (1) The memory is cleared using this procedure. (2) Press the@ , -1 , and keys to display the head step number a t which the NOP instruc-

    tions will be written. By pressing the keys, the final step number is specified and the NOP write operation is executed. In the operation from read, insert/delete, or monitor mode, the displayed step number is used as a head step number. By pressing the @ , @ , -1 , and keys, the final step number is specified and the NOP write operation is executed.

    --+indicates operation to be performed when step number is displayed.

    @, , P I , and

    6-1 5 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. I f the final step number is located halfway through an instruction, the clearing operation i s auto- matically performed up to the final step of that instruciton. Refer to Operation example 3. 1

    The consecutive write of NOP takes approximately 5.5 seconds per 1 K step. Operation example 1 @3m-@-m W

    I O 0 I '

    W 1 0 0 L D X 005'

    '

    Memory content i s displayed.

    w 1 0 0 N 0 P K 1 9 9 :I---- The contents of steps 100 to 199 I O 0 are cleared.

    6-1 6 IB (NAl 6M15

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example 2 (Operation from read, insert/delete, or monitor mode)

    R I , x - - - -+Dlsp lay in read mode W I I I O 0

    W 1 0 0 N O P K l 9 @ -

    I

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation tion)

    example 3 (The head step number or the final step number is located halfway through an instruc-

    - - Circuit example

    1 0 3 M O V

    -7- 108 Since the set step number i s located halfway through an instruction,the step number changes to that of the head step (103) of instruction.

    W 1 0 3 N O P K I 1 3 : I 0 3 -

    t Since the set final step is located halfway through an instruction, NOP is written up to the last step (113, MOV K4X5Z D1Z) of that instruction.

    6-1 8 IB I N A ) 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.4.2 Write of program

    i Basic Operation Operation in write mode - - J - - - Operation from read, insert/delete I ! Or monitor Inode Instruction display operation in read, ~ WR I insert/delete, or monitor mode IO '

    - - + indicates operation to be performed when step number is displayed. I

    ( 1 ) After setting the step number, input the instruction and press the key. This writes the instruction to the CPU memory and advances the step number. Thereafter, each time the and B are input, the instruction is written and the step number incremented.

    Example: In the case of A MOV I DO I D l , MOV, DO, and D l do not need to be written separately but in b ' -ks.

    (2 ) An instruction is not written per step but written per instruction.

    - 6-1 9 IB iNAi 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A (3) When the instruction written in the memory is overwritten with another instruction, the number of

    steps of the preceding instruction may be different from the number of steps of the instruction to be written. In this case, the step numbers of the succeeding program are automatically shifted. (For details, refer to the following page.) Therefore, if write operation is performed af te r a program has been written up to the maximum memory capacity, the program in the vicinity of the final step exceeds the memory capacity and is erased.

    (4) Be sure to write the instruction a t the end of program.

    6-20 IB iNAi 66

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 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 Step number Step number 0 [ x 0 1 O E - 7 7

    I 1

    1 MOV I 1lOUT Y201

    Y / /

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A

    (Circuit example)

    Operation example

    W I 1 on I

    Q 1 0 0 N O P . . .The content of step 100 i s displayed. (NOP i n this I example)

    W ~ 7 L D X 0 0 5: . . .Instruction has been writ ten to step 100 and waiting for the input of instruction of step 101. W 1 0 0 L D X 0 0 5 -

    1 0 1 A N D M 0'

    1 0 2 I O 1 A N D M *:

    W l o t A N D M 2' I O 2 O R D = I

    Use a key in area @ indicated in Section 6.2,

    key Input, the display change.

    6-22 IB iNAI 6605

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A

    The key pressed af te r i s regarded as -

    irrespective of the valid key display.

    W 1 0 2 O R D : 1 K 8 M m Z 1

    W I 1 3

    ~a M 3 2:

    W K 8 M 3 2 1 I 1 3 O U T T 3 1

    W I 1 3 O U T T 3 1 1

    W I 1 3 O U T T 3 1 K 1 2 m I

    W I 1 4

    K 1 2 3 :

  • 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 stop or run of the CPU. However, the read operation during run by instruction or device may take some time. (Time is proportional to the number of 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 Basic Operation I 1 Operation in read mode @ -+m Read

    step number

    Read by device

    ntamher

    In _.

    6-24 IB (NA) 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.5.1 Read by step number r

    Basic Operation *Operation in read mode

    7

    * Operation from write, insert/delete,

    I I

    or monitor mode Instruction display operation from write, insert/delete, or monitor mode

    ]-@--j --+ indicates an operation to be performed when the step number is displayed.

    (1) After specifying the step number press the or 0 to display that instruction. (2) When the specified step number is located halfway through an instruction, the head step number of

    that instruction i s used. Example: When step 106 i s specified in the example shown on the following page, the program is

    (3) Each time the 0 key is pressed, the next instruction is displayed. Each time the @ key is pressed, displayed beginning with step 104. the preceding instruction is displayed.

    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 W51-I

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES

    Operation example R

    1 0 0 L D X 0 2 1 '

    R 1 0 0 L D X 0 2 1 - 1 0 1 O U T Y 0 1 0 -

    R I O 1 O U T Y 0 1 0 ' 1 0 2 L D I M 5 3 '

    R I O 2 L D I M 5 3 4 1 0 3 O U T T 3 -1

    -1

    R 1 0 3 O U T T K

    3 = l o o -

    R 1 0 4 M O V

    K 1 0 0 :

    'R 1 0 4 M O V D o z -

    I

    R 1 0 4 M O V , I K 4 Y I F 0

    R K 4 Y I F 0 1 0 9 D M O V I

    R 1 0 9 D M O V K - 1 2 3 4 5 6 7 8 9 0 2 '

    I

    Circuit example

    1004. I!

    1021c ::

    x21

    M53

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.5.2 Read by instruction

    Basic Operation *Operation to read instruction with device and device number

    Operation to read only by instruction M-D (1) The following instructions are read with devices and device numbers provided. The other instructions

    are read only by instruction. LD OR AND SET PLS SFT OUT MC LDI OR1 ANI RST 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

    As for the P and I instructions, only read by device number can be performed. (Refer to Section 6.5.3)

    MC N3

    6-28 IB iNAi 6051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (2) After setting the instruction, the first input searches that instruction, 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.

    Prior to the input, data can be changed by the following operation, 1 ) After pressing the @ key, input correct data. 2) To change the , input @ and 3) To change the DEVICE and -1 , simply key in the correct data.

    (3) Change of input data

    6-29 IB INA) 66051-A

  • Operation example Circuit example

    R

    R 1 0 0 L D X 0 0 5 ' I O 8 L D X O 0 5 ' 1 0 2

    108 R I D 8 L D X D O 5 : C A N T F I N D R I

    M O V R = I I I

    1 0 3 M O V I

    R 1 0 3 M O V ai 1 0 9 M O V P I . . . . . .When the MOV instruction is searched, the MOVP instruction is also searched.

    R 1 0 9 M O V P C A N T F I N D I

    I

    6-30 IB (NAI 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Read Procedure by Instruction

    (1) Read of comparison instruction When an instruction has been specified, the specified instruction and all-related instructions are read depending on instructions.

    Specified Instruction Read Instruction - I LD= , AND= , OR=

    I D= I LDD= , ANDD= , ORD= I I < > I LD< > . AND< > , OR< > I I D< > I LDD< > . ANDD< > . ORD< > I

    > LDD> , ANDD> , ORD> D> LD> , AND> , OR>

    < = LD< = , AND< = , OR< = D< = < LD< , AND< , OR< D< LDD< , ANDD< , ORD<

    LDD< = , ANDD< = , ORD< =

    I > = I LD> = , AND> = , OR> = I I D> = LDD> = , ANDD> = , ORD> = I I

    6-3 1 IB (NAI 66051-A

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A When the full instruction has been specified (such as LD= and LDD=), only those instructions are searched and read.

    (2) Read of instruction, which is executed when input condition turns on, and instruction which is exe- cuted only once when input condition turns on (e.g. MOV and MOVP)

    Specified Instruction

    *Specified instruction Instruction executed

    Read Instruction

    when Input condition turns on Instruction executed only once when input condition turns on

    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 spe- cified, both the MOV instruction and the MOVP instruction are read. When MOVP is specified, only the MOVP instruction is read.

    6-32 IB INAl 66051-

  • 6. PROGRAMMING .FUNCTION OPERATION PROCEDURES / MELSEC-A 6.5.3 Read by device number

    1 (1) When a device number is omitted, search is made only by the1 DEVICE I

    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 device and a device number, the first input searches that device and device 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.

    2) Re-input t e E] and . key and input correct data,

    6-33 1B INAI 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example Circuit example

    R I x 005' R I

    1 0 0 L D X 005' R I 0 0 L D X 005'

    1 0 8 L D X 005' R 1 0 9 M O V I

    K 4 X 0 0 5 2 '

    1 1 4 L D I X 005' K 4 X 0 0 5 2 '

    'R I 1 4 L D I X 005: C A N T F I N D

    R

    R

    2 I I

    R 1 0 2 M O V , n I 7 1 I

    R 1 0 9 M O V I K 4 X 0 0 5 2 '

    6-34 IB INA) 66051-P

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.6 Insert/Delete Mode

    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

    Insert/ delete

    Item

    Insertion of instructions

    instructions Deletion of

    Baric Operation

    Operation in insert/delete mode

    Operation from read. Instruction display operation in write, or monitor mode [ read, write, or monitor mode Operation in insertldelete mode

    Operation from read, Instruction display operation in ]-['x)- J I write, or monitor mode [ read, write, or monitor mode

    - - + 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 I I I -Operation from read, write, 1 Instruction display operation in 1-0-1 or monitor mode read, write, or monitor mode

    1 - - + indicates operation to 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 to 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 PROCEDURES / MELSEC-A (3) After inputting the -1 , either the t or key may be operated. However, after setting (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 instruc-

    @ B 0 an instruction, it is inserted by pressing key. (The STP key is valid in delete mode.)

    tion is searched and that step number and instruction are displayed.

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A Operation example

    Displays the program at step 101

    l 1 0 1 A N D M 0:

    I 1 0 1 A N D M I O 2 5 :

    I O 3 6:

    I 1 0 1 A N D M 5 1 1 0 2 A N I M HI

    I 1 0 2 A N I M

    I 1 0 2 A N I M 6 1 1 0 3 O R M 0-

    I 1 0 3 O R M 7' I 0 4 I

    In this example, the dotted-line area is inserted, (Circuit example)

    I I

    t 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

    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, I

    I Instruction display operation in ]+3-: or monitor mode [ read, write, or monilor mode A

    -- + indicates operation to be performed when step number i s displayed. ( 1 ) By the input of (SIP] , the instruction a t the displayed step number is deleted. Step numbers are ad- (2) An instruction

    justed accordingly.

    (3) After inputting the , either the or B k e y may be operated, In delete mode, how- ever, only the input (The key is valid in insert mode.)

    (4) When the step through an instruction, the head step number of the instruc- tion is searched and that step number and instruction are displayed.

    6-39 IB INA) 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A --

    1' I O 1 A N D M 5 1 I rn

    By input, the instruction a t step 101 i s displayed.

    [ 5 I p l I 1 0 1 A N I M 6'

    I

    By Pressing 0 , AND M5 isdeleted and the remain- ing program steps are shifted ANI M6 is displayed as the instruction a t step 101.

    mi' 1 0 1 O R M 7' I 0 [ ' 1 0 1 O U T Y Z O ' ] I

    (Circuit example) In this example, dotted-line area i s deleted

    I r - - - - - - - -q

    t By the deletion operation, the step numbers change.

    6-40 IB (NA) W 5 1 - A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 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 to 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

    Monitor

    Item

    X, Y , M, L, B, and F Monitor of

    D, W, R , A, 2, and V Monitor of

    Monitor of T/Cpresent value and contact ON/OFF status

    Continuity check

    Monitor of offline switch ( Y . M. L. B. F)

    Operation in monitor mode @-STEPIIfB Operation from write, instruction display operation

    I

    insertidelete, in write insertldelete, or read mode or read mode ~- - wDEVlCEH4k%!dNOm 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. Device numbers ON/OFF status display {: i g F F

    The ON/OFF status is displayed to the left of the device. (2) By the input of m, the ON/OFF status of the next device number is displayed. By the input of B,

    the ON/OFF status of the preceding device number is displayed. ( I f is input when the largest device number is being displayed, the device number returns to the head device number. I f 0 is input when the head device number is being displayed, the device num- ber returns to the largest device number.)

    (3) The screen displays the ON/OFF s ta tes of a maximum of four devices. (4 ) When the @ key is pressed during the operation of this function, the execution proceeds to the

    monitor operation of offline switch (Section 6.7.5 on page 6-54). (Invalid for AOJ2, A3HCpU.)

    6-42 IB lNAl 66051-1

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example

    M I H X 0 I 2 I . . . . , .Indicates that X12 i s in the ON status. M I I x 0 I 2 I x 0 I 3 I . , . , . .Indicates that X13 i s in the ON status.

    M .x 0 1 2 1 I x 0 I 3 x 0 I 4 I , . , , . .Indicates that X14 i s in the O F F status.

    M IX 0 1 2 I X 0 1 3 - X 0 1 4 DX 0 1 3 -

    M X 0 1 3 X 0 1 4 - X 0 1 3 M I

    M I X 0 1 3 X 0 1 4 1 I X 0 1 3 IM 9 9 9 1

    M X 0 1 4 IX 0 1 3 - IM 9 9 9 M I O O O -

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.7.2 Monitor of D, W, R, A, 2, and V

    Basic Operation Monitor of D, W, R, and A m * v b m

    * Monitor of Z and V pE+(SIPJ

    (1) The value of the selected device is displayed in decimal or hexadecimal. Perform switching between decimal and hexadecimal with the SR key after , 0

    Sign in decimal display ("+" 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 PROCEDURES / MELSEC-A (2) By pressing the 0 key, the ON/OFF status of the next device number is displayed. By pressing the

    (If 0 is input when the largest device number is being displayed, the device number returns to the head device number. I f 0 is input when the head device number is being displayed, the device nurn- ber returns to the largest device number.)

    (3) The screen displays the contents of two devices. (4) Monitor operation for 32-bit instruction.

    0 key, the ON/OFF status of the preceding device number i s displayed.

    The PU monitors device values in units of 16 bits. Therefore, when a 32-bit instruction in used, moni- tor 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 DO = 100 MOO64 D l = O MOO00

    In hexadecimal, the content is H00000064.

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example

    M I D 101

    M 1 0 1 5 1 D 1 2 1

    M 1 0 1 5 - 3 2 7 6 8 1 D 1 2 D 1 3 1

    M H 0 3 F 7 H 8 0 0 0 1 . . D 1 2 D 1 3 1

    M H 8 0 0 0 H 0 3 F 7 1 D 1 3 D 1 2 1

    . . . .By SFT input, display is switched to hexadecimal.

    Hexadecimal display unti l the next @ input. 0

    M D 1 2 A 0:"

    M H 0 3 F 7 H F F F F m D 1 2 A 0 1

    M H F F F F H 0 0 1 9 1 A O A I I

    . .By the input of a new device, display i s switched.

    M - A

    I O A I I

    2 5 1 . _ ._ . . By input, display is switched to decimal.

    6-46 IB NAI 6051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.7.3 Monitor of TIC present value and contact ONDFF status

    Basic Operation pi+pziq-~ 7 (1) The contact ON/OFF status and content (present value) of the specified device are displayed. Switch

    between the decimal 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 the key, the ON/OFF status of the next device number is displayed. By pressing the

    ( I f is input when the largest device number is being displayed, the device number returns to the head device number. I f 0 is input when the head device number is being displayed, the device nurn- ber returns to the largest device number.)

    0 key, the ON/OFF status of the preceding device number i s displayed.

    (3) The screen displays the ON/OFF states and values of two devices, 6-47

    IB (NAI 6051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A Operation example

    M T l a m 1

    M 5 1 2 1

    I 0 I 5 I . , . , . .T12 present value = 1015, contact = OFF

    M I 0 I 5 3 2 7 6 7 I . . , , . .T13 present value = 32767, contact = ON T 1 2 I T 1 3 1

    T 1 2 I T 1 3 1 c M H 0 3 F 7 H 7 F F F 1 M H 7 F F F H 0 3 F 7 I

    - . . - . By pressing the SFT key, the display i s switched to hexadecimal.

    I T I 3 T 1 2 -

    M T 1 2 C m:

    M H 0 3 F 7 H 0 0 0 5 - I T I 2 C 9 1

    M H 0 0 0 5 H 0 0 1 9 - C 9 IC 1 0 1

    M C

    5

    to decimal.

    6-48 IB INAl 66051

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.7.4 Continuity check

    . Basic Operation .Operation in monitor mode

    I I

    Illbe1 L/ueleLe, UI Iec

    - - - + indicates operation to 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 is read and the

    (2) Explanation of display (For display screen, refer to the following page) continuity status, contact ON/OFF status, and device present value are displayed.

    Continuity status: The continuity status after the execution of the instruction is displayed to the left of the instruction. (Not displayed for AOJ2, A3HCPU)

    ON/OFF display: Displayed to the left side of the device number.

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A

    Present value: Displayed above the T/C number 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 D. (3) By pressing the key, the next instruction is displayed. By pressing the @ key, the preceding

    instruction is displayed. ( I f is input a t the final number, the step number returns to the head step number. I f 0 is input a t the head step number, the step number returns to the final step number.)

    (4) Even i f digit qualification or index qualification has been performed, the continuity check is made for the previous device number. Example DOZ: The present value of DO is displayed. (Not the present value of D[O+Z])

    K2XO: ON/OFF of X0 is displayed. (Not ON/OFF of X0 to X7) (5) Sequence instruction -When the device is T, C, D, W, R, A, 2 , or V, 1 the present value i s displayed.

    Device number ON/OFF display of device contact ( X , Y , M , L , B , F , T , C l Instruction

    : Non-con,tinuity status 6-50

    IB INA) 66051-

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (6) Basic instruction and application instruction

    Step number Continuity status of instruction i s displayed

    0 : Non-continuity status M : ............ I... 8 ...... ...... ...............

    Device number Present value display of device ON/OFF display of device contact ( T , C , D , W , R , A , Z , V ) ( X , Y , M, L. B, F, T. C )

    ( 0 : O F F : ON

    6-5 1 IB INAI 66051-A

  • 6 , PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A Operation example

    M I om I I

    M I I O O I L D IX 0 2 1 1

    M I 2 3 4 5 1 1 0 2 1 L D I T 1 -

    M 1 0 2 I L D I T I - 1 0 3 A N 0 Y 0 3 2 -

    ' M 1 0 3 A N 0 Y 0 3 2 - 1 1 0 4 1 0 R B 1 . . .

    (Circuit example)

    x22 107 I I

    ' . .T1 has not yet timed up.

    . . .Since X21 and MO are in continuity status, the ORB instruction is in continuity status.

    m I M !::#:!:MY 0 3 0 ~ 1 I . , . . . .Y30 i s in continuity status. m 1' 1 0 6 1 0 U T T 2 1 Device T2 is off. 1 8 I . . . . . .T2 coil is in continuity status.

    M 1 0 6 1 0 U T T K

    2 1 3 0 I

    6-52 IB INAI 660

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A

    M 1 0 7 L D l l X 0 2 2 1

    K 3 0 I

    M 1 0 7 L D l l X 0 2 2 1 1 0 8 O R X 0 2 3 -

    M I 0 8 O R X 0 2 3 1 1 0 9 M O V I

    M 1 0 9 M O V I . . . . . .The content of DO i s displayed 1 2 3 4 5 0 0 2 - irrespective of the content of 2.

    M 1 0 9 M O V , I , , , . . .ON/OFF of Y 1 FO i s displayed. K 4 Y I F 0 -

    M 1 0 9 K 4 Y I F O I I 1 4 E N D I

  • 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,

    4 Device number M s w

    s w ,, I I

    Offline status causes the coil of the element to be effectively disconnected from its controlling logic. (2) By pressing the key, the status of the next device number is displayed. By pressing the 3 key,

    the status of the preceding device number i s displayed, ( I f is input when the largest device number is being displayed, the device number returns to the head device number. I f is input when the head device number is being displayed, the device num- ber 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 (5) For the setheset operation of offline switch, refer to Section 6.8.3. on page 6-64.

    monitor operation of X, Y, M, L, B, and F (Section 6.7.1 on page 6-42).

    Operation example

    Q M

    Y 0:l M

    s w Y 0:i M

    s w Y 010:l

    M I S W l Y 0 1 2 1

    M S W l Y 0 1 2 1 s w Y 0 1 3 1

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A 6.8 Test Mode

    Test mode is used to perform the tes t operation for the program and to read any error steps and error descriptions when appropriate. In tes 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 I Item Basic Owration I

    Test Setireset of offllne switch ( Y , M, L, 6, and F ) ~DEVlCE@+iEi++~Q (or @:I Program check

    Read of error step and error descriptlon at error time mdm

    6-56 IB INAl 6051-P

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A

    Mode

    Write @ - + ~ + ~ + ~ + ~ Read @ +- -+n Basic Operation Item

    Test Readlwrite in machine language _______________________________________I------.

    For the AOJ2, ASHCPU, se these t of the offline switch cannot be performed

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.8.1 Setheset of X, Y, 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 se theset 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. ( I f is input when the largest device number is being displayed, the device number returns to the head device number. I f is input when the head device number is being displayed, the device num- 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 during the operation of this function, the execution proceeds to the

    se these t operation of offline switch (Section 6.8.3 on page 6-64). (Invalid for AOJ2, 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 PROCEDURES / MELSEC-A Operation example

    T I Y ooa.

    T @ Y 000.1

    @displays the ON/OFF status of YO

    T y 0 0 0 .I. . . . . .IS4ET]causes YO t o be SET (ON)

    I Y 0 0 0 B Y 0 0 I '1. . . . . displays the ON/OFF status of t h e next

    T device (i.e. Y l )

    Y 0 0 0 1 HY 0 0 1 M 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 ) By inputting , -1, and , the current value and ON/OFF status (for T and C ) of the selected device number is displayed. Monitor i s stopped by the input of a, the content of set device number is changed to the input value by the input of -1 and m, and then monitor display is resumed. To set the present value in hexadecimal, input and To se t the present value in decimal, input only the (For the input of present value data, use the device number setting keys in area (@ shown on page

    During CPU run, the present value of the device changes according to the normal processing of the program.

    -1 6-3.)

    (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. PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A (4) By pressing the key, the value of the next device number is displayed. By the input of n, the

    value of the preceding device number is displayed. ( I f 0 is input when the largest device number is being displayed, the device number returns to the head device number. If 0 is input when the head device number is being displayed, the device num- ber returns to 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 spe- cial register, perform operation after checking the content, referring to the CPU Users manual.

    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. Example: To store K305432864 (H 12348920) to D O and D l , write H8920 to DO and H1234 to

    (7) Present value change when 32-bit instruction is used

    D l .

    6-62 IB (NAI 66051

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example

    T 1 T 2 0 m - a , T @ T I 2 3 4 5 200.1 Monitoring the value of T200.

    The monitor display of ON/OFF status of -the contact i s provided.

    T T 2 0 o m 0 - 1 . . . . . .@causes monitoring to stop.

    T i 2 m m T 2 0 0 1

    T B T Ai im. . . . . . causes the present value to be changed O T I 2 3 and monitoring to resume

    BT 2 0 0 BT 2 0 1 9999.

    T H 7 8 H 2 7 0 F . BT 2 0 0 BT 2 0 1 .@switches the display to hexadecimal.

    m@mm!MFc] T H 7 8 H O F F F I T 2 0 0 T 2 0 1 1 BIT T 2 0 0 T 2 0 1 1 H 7 8 H O F F F ,

    6-63 16 INAi 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / __-- MEI'SEC-A 6.8.3 Setheset of offline switch (Y, M, L, B, F ) (Not available for AOJ2, A3HCPU) (Basic Operation 1 ( 1 ) The selected device number i s placed online by pressing @ and offline by pressing ,

    (In offline status, a device can be set to the on or of f 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 se these t .

    (3) By pressing @ , the next device number is displayed. By pressing STP , the preceding device number is displayed. ( I f is input when the largest device number is being displayed, the device number returns to the head device number. I f is input when the head device number is being displayed, the device num- ber returns to the largest device number.)

    0

    (4) The screen displays the contents of a maximum of two devices.

    6-64 IB INAl 66051

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (5) When the key is pressed during the operation of this function, execution proceeds to the set/reset

    operation OX, Y , M, L, B, and F (Section 6.8.1 on page 6-58).

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example

    T I y 0-

    T s w Y

    I I

    T I s w Y 0 0 0 1

    T s W @ Y 0 0 0.l

    ,The monitor display of offline switch status

    T . . . . . . sets, online status, s W.Y

    T s w Y 0 0 0

    ' T s w Y 000,

    T s w Y 000. S W B Y 0 0 I

    S W B Y 0 0 I

    6 -66 IB INAI 6605

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES ./ MELSEC-A 6.8.4 Program check

    Basic Operation I (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, (b) Instruction code check: Sequence program instruction codes are checked. (c ) END instruction check: END instruction in sequence program is checked.

    (2) When an error has been found as a result of the check, the step number and anarror message are dis- played. Checking may be resumed by pressing B, beginning a t the next step. Since all instructions from step 0 to the END instruction are checked, this may take a few seconds.

    SFT, PLS, MC, and PLF) are checked for dual coils.

    6-67 IB iNAi 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example

    T P I I T 1 0 2 4 I

    c Displays the step number currently being checked.

    is a dual coil. Display example of dual coil check T 1 2 3 4 I D U A L C O I L E R R O R ' I ' . ' ' Y I F F , .Indicates that the device a t step 1234

    Display example of instruction code check . . . . . .Step 1413 has an instruction code error. , , E E I T 1 4 1 3

    Display example of END instruction check T I 9 9 9 I . . , , . .Indicates that the END instruction E N D is stored a t step 1999.

    M I S S I N G E N D I N S T 6 1 4 3 I . . . . . .Indicates that the END instruction has been omitted.

    6-68 IS (NAI 66051

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.8.5 Reading the error step and error description

    Basic Operation B-B 7 (1) An error, which has occurred in the programmable controller CPU, is read and displayed by pressing

    and m, Error step number (Only error numbers

    Error number 10, 13, 46, and 50)

    .............................................

    Error message

    (2) When there is no error, 1' E is displayed. 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 6.8.6 Read/write in machine language

    /R.ad--- ~ @ - j l j - - j S I P ) Basic Operation Write

    (1) The content of address set by @ , -1 , and is directly read from the CPU and dis la ed in hexadecimal. The new machine language code may then be written to the CPU by inputting Machme

    and a . The read operation can be 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.

    E

    , . , I , ,

    t f + Input data is displayed ;Data read from CPU i s displayed.

    Address (5 digits in hexadecimal)

    6-70 iB INAt 66051-

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (2) By pressing @ , the content of the next address is displayed. By pressing , the content of the

    previous address is displayed.

    I REMARKS 1 In this operation, only the area @ (device number setting k e y s ) shown on page 6-3 are valid.

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / ~- MELSEC-A Operation example

    T o I I

    miT 0 8 4 0 0 A B - 0 11 . . .By pressing 0 , the content of address 8400 (hexa- I decimal) i s displayed. DT 0 8 4 0 0 A B - 11 . . .By pressing , the content of the next address is 0 8 4 0 1 2 3 - 0 I disolaved.

    T 0 8 4 0 0 A B - I 0 8 4 0 1 2 3 - I m m

    . .

    IT 0 8 4 0 I 2 3 - I 0 m i . . .By pressing , 10 (hexadecimal) is written to 0 8 4 0 2 7 F - 0 I) address 8401 (hexadecimal).

    6-7 2 IB INA) 66051-A

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / ~- MELSEC-A

    Sampling

    AW2 CPU 1 Al(E)CPU, AlNCPU 1 AZ(E)C Dsfaun Parameter Ddaun value zi: value setting range :,:: 1.5K

    Parameter

    bels No setting points

    OK byte ~ , " , "~~$~ OK byte I

    Absent No setting Absent No setting Absent

    Absent No setting Absent No setting Absent

    , ) t I

    I, A2NCPU I A3(E)CI

    value

    I, A3NCPU Parameter

    setting range

    0 to 4032 points (p;;;n;;)

    Present/ absent

    Present/ absent

    30 to 3FF co to 255 To to 2%

    W to 1023 WO to 3FF

    Table 6.1 Default Values and Set Values for Each CPU (Continue)

    L

    Defautt value

    -

    - OK b v e - Absent

    Absent

    1CPU _- Parameter

    !;etting -- range

    0 to 4032 polnts

    _- (S:;;:nP:) F'resenti absent

    F'resenti absent

    _-

    TO to 255 80 to 3FF

    co to 255 DO to 1023 wo to 3FF

    " 1 7 IB (NAI 66051-D

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A

    r I value Defaull

    Link range specification

    -

    ! CPU Parameter

    setting range

    No setting

    I

    Number of Number of I link stations:

    Input (X):

    output ( Y ) :

    1 to 64

    X0 to FF

    YO to FF

    link stations:

    Input (XI:

    output ( Y ) :

    1 to M

    X0 to FF

    YO to FF Link relav Link relav

    - l'B' :BOto31FI - I (B): BOto31FI - Link register Link register

    WO to 3FF WO to 3FF Monitor time:

    Monitor time:

    lOms to 1Oms to 2000ms 2000ms

    Al(E1CPU. AlNCPU I M(E)CPU, AZNCPU I A3(E)CI I . A3NCPU 1 A3HCPU 1 I

    Input (X):

    output (Yl:

    Link relay (B):

    Link register (WI:

    Monitor time:

    1 to M

    X0 to FF

    YO to FF

    BO to 31F -

    WO to 3FF

    lOms to 2OOOms

    [in ,u;;~ of)

    Input (X):

    Output (Y ) :

    Link relay

    1 to 64

    X0 to FF

    YO to FF

    @I:

    Link register (W):

    time: Monitor

    BO to 31F

    WO to 3FF

    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 M N C P U I AB(E)CPU, A3NCPU I A3HC:PU I- PU AWZ CPU

    1 m . ? O m s , Setting of

    integrating timers (i; ;its;f)

    tWms: Setting of TO to lOOms, l o r n

    199 integrating

    255 1.8 p o i n a

    l o w : timers ROO to 'in units

    Table 6.1 Default Values and Set Values for Each CPU (Continue)

    6-76 IB INPI 66051

  • 6 . PR0GRA)lMING FUNCTION OPERATION PROCEDURES / MELSEC-A

    -1 AOJ2 CPU

    m NO setting p z t s assignment 110

    5 .. P c P 0

    3 z - x 2 Remote

    setting RUNlPAUSE No setting -

    - Al(E)CI

    Default value

    I, AlNCPU I AZ(E)CPU, AZNCPU I AO(E)CPU, A3NCPU I A3HCPU Parameter

    value

    Parameter Dsfauk Parameter Defauk Parameter Defauk zF: value value setting range range points each

    0 to 64

    f?6u$rnp3 * input (X)

    * output (YI unit

    G * Special function

    unit

    unit * Vacant slot

    0 to M points each

    f?6';2:n:s9 ' input (XI

    - Output (Y) unit

    * Special unit

    function unit

    *Vacant slot

    I points each 0 to M

    C:GU$%9 ' * input (X)

    - output (Y) - unit ' *Special

    unit

    function unit

    *Vacant slot

    points each 0 to M

    C:6't,"6Z9 * input (X)

    * output (Y unit

    < *Special function

    unit

    unit * Vacant slot

    X0 to FF X0 to FF

    set lor RUN point can be

    set for RUN point can be

    * Setting of contact

    contact PAUSE

    not allowed. alone is

    * Setting of contact

    contact PAUSE

    not allowed. alone is

    X0 to FF * Only 1 p in t can be set for RUN

    - Setting 01 contact PAUSE

    not allowed. alone is

    G contact

    X0 t o FF

    * Setting of contact

    PAUSE contact alone is

    not allowed.

    Table 6.1 Default Values and Set Values for Each CPU (Continue)

    6-7 7 IB (NAI 66051-D

    . ... ..- ..... ----. --- .. . .

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / -- MELSEC-A

    I Item m c I m

    E at error c Run mode

    c 3 c

    Annunciator display mode

    AOJ2 CPU

    Continu- ation - Fuse blow No setting Opera- tion

    -I- error Absent I No setting

    - A1lE)CI

    DefauIt value - (cm;;)

    * Fuse blow - Opera- tion error

    - VO unlt verify

    * Special error

    functi- on unit

    tion opera-

    error

    Stop1

    Absent -

    - Fuse * Fuse blow - Operation * 110 unit

    error Istop'

    verify error ' ::$ - Special function . Special unit operation :nn,":,; error opera-

    error

    tion

    I, A2NCPU Pararneter

    retting range

    Fuse blow Operation error

    * 110 unit verify error

    * Special function unit operatlon error

    No setting

    AB(E)CF

    Defautt value

    (y;) * Fuse

    Opera- blow

    tion error - VO unlt verify

    * Special error

    functi- on unlt

    tion opera-

    error

    [Stop]

    Absent

    , ABNCPU Parameter

    setting range

    Fuse blow - Operation error - 110 unit verify error

    * Special function unit operation error

    presentJ Display

    absent

    Table 6.1 Default Values and Set Values for Each CPU (Continue)

    T -- ABHCPU 1 Default value

    (C;;;;j * Fuse

    Opera- blow

    tion error - VO unlt verify error

    * Special functi- on unit opera- tion error

    Absent

    [Stop1

    Parameter retting range ,-

    ( stop/ * Fuse blow - Operation * I/O unit

    error

    * Special verify err01

    function unit operation error

    presenti Display

    absent

    6-7 8 IB !NAI 66051

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A

    v kern

    T

    Counter

    counter

    Print title entry

    AW2 CPU T Default value

    Opera- tion

    status prior to STOP is .estored.

    -

    -

    -

    - - -

    Parameter setting range

    No sening

    No setting

    alphanumeric 128

    and special characters

    AlfEICPU. AlNCPU Parameter

    CO to 247

    alphanumerlc and special characters

    hexedscimef digits

    AZIEICPU. AZNCPU Parameter

    Opera- Output of

    status to STOP or tion status prior

    prior to result one STOP is scan after .estored. operation

    - (i; ;;st;f)

    alphanumeric 128

    and special characters

    6 hexadedmal

    digits

    co to 247

    -

    -

    T AOIEICPU. A3NCPU T . . Default valua

    Opera- tion

    status prior to STOP is restored.

    -

    -

    - - A E

    Parameter setting range

    output of status prior to STOP or result one scan after operation

    CO to 247

    alphanumeric 128

    and special characters _.

    &

    AOHCW 1 Default value

    Opera- tion

    status prior to

    restored STOP is

    Absent

    Parameter setting range

    status prior Output of

    to STOP or result one scan after operation

    No setting

    alphanumeric and special characters

    Table 6.1 Default Values and Set Values for Each CPU (Continue)

    6-79 I8 INAI 66051-D

    . _ _ ~. - -.- - . - , . . .. .

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES m m A --

    AW2 CPU 1 A1lE)CPU. AlNCPU Item Dsfaun

    Parameter value value

    Default Parameter

    range I

    Initial Initial

    tion tion Operation mode opera- No setting opera- No setting

    Interrupt

    Table 6.1 Defauk Values and Set Values for Each CPU

    4CPU Parameter

    setting range

    VO refresh * Input

    refresh. output

    * Input direct

    direct OUtpJt

    YO dirset refresh

    No sening

    present set AbsenW

    per counter

    6-79a IB INAI 660

  • 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Internal relay, latch relay, step relay range setting for the AOJ2CPU.

    Selection

    No latch Latched Area Unlatched Area

    MO to 2047, TO to 255, CO to 255, DO to 51 1, BO to 3FF. (WO - 3FFI MO to 1023, CO to 63, DO to 255, TO to 39, T80 to 99, T120 to

    119. T124 to 127. E200 to 3FF. IW200 to 3FFl 123. BO to 1FF. IWO to FFI L1024 to 2047, C64 to 127, D256 to 51 1, T40 to 79, TlOO to

    No setting

    Half latch

    No setting 1 3FFl LO to 2047,TO to 255, CO to 255, DO to 51 1, BO to 3FF. (WO to I

    The A7PU only allows the step relay (S) range t o be read. The AGGPP/AGHGP/AGPHP must be used t o set and change the step relay (SI range. The step relay (S) range is "S1536 to 2047" independently of the latch setting when step relay (S) "present" is set to the AOJ2CPU. The step relay (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.

  • 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A -- Set parameters in the order that they are presented on the display, for each operation see sections 6.9.1 to 6.9.1 1. @ P I I T 0 0

    From page

    P A R A M E T E R C L E A R

    Parameter clear processing (Section 6.9.1