Dvp Ss Manual

download Dvp Ss Manual

of 459

Transcript of Dvp Ss Manual

  • 7/29/2019 Dvp Ss Manual

    1/458

    DVP-PLC Application ManualProgram

    Table of Contents

    Chapter 1 Working Principles of PLC Ladder Diagram

    Preface-The Background and Functions of PLC ...................................................... 1-1

    1.1 The Working Principles of Ladder Diagram........................................................ 1-1

    1.2 The Difference between Traditional Ladder Diagram and PLC Ladder Diagram... 1-2

    1.3 Edition Explanation of Ladder Diagram ............................................................. 1-4

    1.4 The Edition of PLC Ladder Diagram.................................................................. 1-8

    1.5 The Conversion of PLC Command and Each Diagram Structure ........... ............ .. 1-11

    1.6 The Simplification of Ladder Diagram ............................................................... 1-14

    1.7 The Example for Designing Basic Program........................................................ 1-16

    Chapter 2 DVP-PLC Function

    2.1 Summary of DVP-PLC Device Number .............................................................. 2-1

    2.2 Value, constant [K] / [H] ................................................................................... 2-7

    2.3 The Numbering and Function of External Input/Output Contact [X] / [Y] .............. 2-9

    2.4 The Numbering and Function of Auxiliary Relay [M] ........................................... 2-11

    2.5 The Numbering and Function of Step Relay [S] ................................................. 2-12

    2.6 The Numbering and Function of Timer [T] ......................................................... 2-13

    2.7 The Numbering and Function of Counter [C]...................................................... 2-16

    2.8 Register Number and Function [D], [E], [F]........................................................ 2-28

    2.8.1 Data register [D] ........................................................................................ 2-28

    2.8.2 Index Register [E], [F] ................................................................................ 2-29

    2.8.3 File Register Function and Characteristics .................................................. 2-30

    2.9 Nest Level Pointer[N], Pointer[P], Interrupt Pointer [I]........................................ 2-30

    2.10 Special Auxiliary Relay and Special Register ................................................... 2-33

    2.11 Special Auxiliary Relay and Special Register Functions....... ............ ............ ..... 2-53

    2.12 Fault Code Information................................................................................... 2-83

    Chapter 3 Basic Commands

    3.1 Summary of Basic Command and Step Ladder Command .................................. 3-1

    3.2 Basic Commands Explanations......................................................................... 3-3

    Chapter 4 Step Ladder Commands4.1 Step Ladder Command [STL], [RET] ................................................................. 4-1

  • 7/29/2019 Dvp Ss Manual

    2/458

    4.2 Sequential Function Chart (SFC) ...................................................................... 4-1

    4.3 Step Ladder Command Explanation .................................................................. 4-2

    4.4 Reminder of Design on the Step Ladder Program .............................................. 4-7

    4.5 Categories of Procedures................................................................................. 4-8

    4.6 IST command .................................................................................................. 4-18

    Chapter 5 Application Commands

    5.1 Summary of Parameters................................................................................... 5-1

    5.2 Application Command Structure........................................................................ 5-6

    5.3 Handling of Numeric Values ............................................................................. 5-11

    5.4 Index register E, F ........................................................................................... 5-14

    5.5 Index for Commands ........................................................................................ 5-16

    Chapter 6 Application Commands API 00-49........................................... 6-1

    Chapter 7 Application Commands API 50-99........................................... 7-1

    Chapter 8 Application Commands API 100-149 ....................................... 8-1

    Chapter 9 Application Commands API 150-199 ....................................... 9-1

    Chapter 10 Application Commands API 215-246 ..................................... 10-1

  • 7/29/2019 Dvp Ss Manual

    3/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-1

    Preface----The Background and Functions of PLC

    PLC (Programmable Logic Controller) is one of electronic equipments. It was called Sequence Controller

    before. It was named Programmable Logic Controller (PLC) by NEMA (National Electrical Manufacture Association)

    in 1978 and defined as electronic equipment. The operation of PLC is in the following:

    Step 1. Read the external input signal, such as the status of keypad, sensor, switch and pulse.

    Step 2. Using microprocessor to execute the calculations of logic, sequence, timer, counter and formula according to

    the status and the value of the input signal read in the step 1 and pre-write programs saved inner to get the

    corresponding output signal, such as open or close of relay, operation of controlled machine or procedure to control

    automatic machine or procedure of manufacture. PLC also can be used to maintain and adjust of production program

    by editing or modifying the peripheral equipments (personal computer/handheld programming panel). The common

    program language of PLC is ladder diagram.

    There are stronger functions in PLC with the development and application requirements of electronic technology,

    such as position control, network and etc. Output/Input signals are DI (Digital Input), AI (Analog Input), PI (Pulse

    Input), DO (Digital Output), AO (Analog Output) and PO (Pulse Output). Thus PLC plays an important role in the

    feature industry.

    1.1 The Working Principles of Ladder Diagram

    Ladder diagram is an automatic control diagram language that developed during World War II. At first, it just has

    basic components, such as A contact (normally open), B contact (normally close), output coil, timer counter and etc.

    (The power panel is made up of these basic components) It has more functions, differential contact, latched coil and

    the application commands, add, minus, multiply and divide calculation, that traditional power panel cant make since

    PLC is developed.

    The working principles of the traditional Ladder Diagram and the PLC Ladder Diagram are similar to each other;

    the only difference is that the symbols for the traditional ladder diagram are expressed in the format that are close to

    its original substance, while those for the PLC ladder diagram employ the symbols that are more explicit when being

    used in computers or data sheets. In the Ladder Diagram Logics, it could be divided into the Combination Logics

    and the Sequential Logics, and is described as follows:

    1. Combination Logics:

    The following example is the combination logics that show in traditional diagram and PLC ladder diagram

    separately.

    Traditional Ladder Diagram PLC Ladder Diagram

    X4

    X0

    X2

    X3

    X1

    Y0

    Y2

    Y1

    X0Y0

    X1Y1

    Y2X2

    X3

    X4

  • 7/29/2019 Dvp Ss Manual

    4/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-2

    Example 1: Circuit 1 utilizes one X0 (NO: Normally Open) switch, which is normally known as the A switch or

    contact, and its characteristic is that the contact is in the OFF condition at regular time (not pressed); the

    output point Y0 is thus in OFF condition. However, once the switch motion (the button is pressed) is

    conducted, the contact will be ON, and the output point Y0 will be in ON condition.

    Example 2: Similarly, Circuit 2 utilizes the X1 (NC: Normally Close) switch, which is normally known as the B switch

    or contact, and its characteristic is that the contact is in the ON condition at regular time; the output point

    Y0 is thus in ON condition. While the switch motion is conducted (which is in the OFF condition), the

    output point Y0 is in OFF condition.

    Example 3: This is an example of combination logics output, which has more than one input equipment. The output

    point Y2 will be in ON condition when X2 is in OFF condition or X3 and X4 are in ON condition.

    2. Sequential logics:

    The sequential logics are a type of circuit that possesses the Draw-Back structure, which is to draw back the

    circuits output result and has it serve as the input condition. Thus, under the same input condition, different

    output results will be generated in accordance with previous conditions and motions with different orders.

    The following example is the sequential logics that show in traditional diagram and PLC ladder diagram

    separately.

    Traditional Ladder Diagram PLC Ladder Diagram

    X5 X6 Y3

    Y3

    Y3X5

    Y3

    X6

    When the above circuit is just supplied with power, although the X6 switch is ON, the X5 switch is still OFF, thus,

    the output relay Y3 will be in OFF condition; output of the relay will only be ON after X5 is ON. Once the output relay

    Y3 is in ON condition, there will be a feedback signal containing the ON condition from Y3 to connect in parallel with

    the A contact of X5; this circuit is thus also known as the self-latched circuit. The circuit motion is showed in the

    following chart:

    Device status

    StepX5 X6 Y3

    1 N N OFF

    2 Y N ON

    3 N N ON4 N Y OFF

    5 N N OFF

    N: is in OFF condition Y: is in ON condition

    From above chart, you can find that the same input may get different result. For example, in the step 1 and 3, the

    status of X5 and X6 are in OFF condition but Y3 is in OFF condition in step 1 and in ON condition in step3. That is due

    to the self-latched circuit feedback input. In this example, it explains with contact A, contact B and output coil. The

    usage of other equipments is the same with this. Please refer to the chapter 3 for the detail.

    1.2 The Difference between Traditional Ladder Diagram and PLC Ladder Diagram

  • 7/29/2019 Dvp Ss Manual

    5/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-3

    Although the working principles are in accordance with each other for the traditional ladder diagram and the PLC

    ladder diagram, PLC is indeed utilizing the microcomputer chip (MCU) to simulate the motion of the traditional ladder

    diagram, which is to use the scan method to look over one by one the conditions of all input devices and output coils,

    and afterwards, with the conditions in consideration, to calculate and generate the same output result as that of the

    traditional ladder diagram based on the logics of the combination status of the ladder diagram. However, since that

    there is only one MCU, the only way to examine the circuits is to look it over one after another within the ladder

    diagram program, then calculate the output result in compliance with the program and the input/output status, and

    finally, output the results to the external interface; thereafter, start over with the readout of the input status, the

    calculation, output, and repeatedly go over the above-mentioned motions again; the time needed to complete the

    whole set of cyclic motion is called one Scan Time. The scan time will become longer in accordance with the

    increment of the program. With this scan time, it will incur repeated input detections, and thus, result in delay in the

    output responses; and the longer the delay time, the greater the error towards the control, and whats worse, is that

    the condition might be unqualified for the control requests. By then, PLC (with faster Scan Time) would be chosen to

    do the job; the scan speed is thus an essential specification to PLC. Thanks to the advanced technique of ASIC (IC

    with specific functions) within the microcomputer, PLC of the present has made greater progress in the scan speed,

    and what follows is the scanning chart of the PLC Ladder Diagram Program.

    Calculate the result by ladder

    diagram algorithm (it doesnt sent

    to the outer output point but the

    inner equipment will output

    immediately.)

    Y0

    X0 X1

    Y0Start

    M100 X3

    Y1

    X10

    ::

    X100 M505

    Y126

    End

    Send the result to the output point

    Read input state from outside

    Execute in cycles

    In addition to the difference of scan time, PLC ladder diagram and traditional ladder diagram also has difference

    in reverse current. In the following chart of traditional ladder diagram, if X0, X1, X4 and X6 are in ON condition and

    the others are in OFF condition, output point Y0 will be in ON condition as shown as dotted line in the following

    diagram. But in the PLC ladder diagram will have error in the peripheral equipmentWPLSoft due to scan method of

    MCU is from up to down and from left to right.

  • 7/29/2019 Dvp Ss Manual

    6/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-4

    Reverse current of traditional ladder diagram

    X6

    X0 X1 X2

    X3 X4 X5a b

    Y0

    Reverse current of PLC ladder diagram

    X6

    X0

    Y0

    X1 X2 Y0

    X3 X4 X5a b

    There is a fault in the 3rd row of ladder diagram.

    1.3 Edition Explanation of Ladder Diagram

    Ladder diagram is a diagram language that applied on the automatic control and it is also a diagram that made

    up of the symbols of electric control circuit. PLC procedures are finished after ladder diagram editor edits the ladder

    diagram. It is easy to understand the control flow that indicated with diagram and also accept by technical staff of

    electric control circuit. Many basic symbols and motions of ladder diagram are the same as mechanical and electrical

    equipments of traditional automatic power panel, such as button, switch, relay, timer, counter and etc.

    The kinds and amounts of PLC internal equipment will be different with brands. Although internal equipment has

    the name of traditional electric control circuit, such as relay, coil and contact. It doesnt have the real components in it.

    In PLC, it just has a basic unit of internal memory. If this bit is 1, it means the coil is ON and if this bit is 0, it means the

    coil is OFF. You should read the corresponding value of that bit when using contact (Normally Open, NO or contact a).

    Otherwise, you should read the opposite sate of corresponding value of that bit when using contact (Normally Close,

    NC or contact b). Many relays will need many bits, 8-bits makes up a byte. 2 bytes can make up a word. 2 words

    makes up double word. When using many relays to do calculation, such as add/ subtraction or shift, you could use

    byte, word or double word. Furthermore, the two equipments, timer and counter, in PLC not only have coil but also

    value of counting time and times.

    In conclusion, each internal storage unit occupies fixed storage unit. When using these equipments, the

    corresponding content will be read by bit, byte or word.

    Basic introduction of the inner equipment of PLC: (Refer to Chapter 2 for detail)

    Input relay

    Input relay is the basic storage unit of internal memory that corresponds to external input

    point (it is the terminal that used to connect to external input switch and receive external input

    signal). Input signal from external will decide it to display 0 or 1. You couldnt change the state of

    input relay by program design or forced ON/OFF via HPP. The contacts (contact a, b) can be

    used unlimitedly. If there is no input signal, the corresponding input relay could be empty and

    cant be used with other functions.

    Equipment indication method: X0, X1,X7, X10, X11,. The symbol of equipment is X

    and the number uses octal. There are numeric indications of input point on MPU and

    expansion unit.

  • 7/29/2019 Dvp Ss Manual

    7/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-5

    Output relay

    Output relay is the basic storage unit of internal memory that corresponds to external output

    point (it is used to connect to external load). It can be driven by input relay contact, the contact of

    other internal equipment and itself contact. It uses a normally open contact to connect to external

    load and other contacts can be used unlimitedly as input contacts. It doesnt have the

    corresponding output relay, if need, it can be used as internal relay.

    Equipment indication: Y0, Y1,Y7, Y10, Y11,. . The symbol of equipment is Y and the

    number uses octal. There are numeric indications of output point on MPU and expansion

    unit.

    Internal relay The internal relay doesnt connect directly to outside. It is an auxiliary relay in PLC. Its

    function is the same as the auxiliary relay in electric control circuit. Each auxiliary relay has the

    corresponding basic unit. It can be driven by the contact of input relay, output relay or other

    internal equipment. Its contacts can be used unlimitedly. Internal auxiliary relay cant output

    directly, it should output with output point.

    Equipment indication: M0, M1,, M4, M5. The symbol of equipment is M and the number

    uses decimal number system.

    STEP DVP PLC provides input method for controlling program of step actions. It is very easy to

    write control program by using the conversion of control step S of command STL. If there is no

    step program in the program, step point S could be used as internal relay M or alarm point.

    Equipment indication: S0, S1,S1023. The symbol of equipment is S and the number

    uses decimal.

    Timer Timer is used to control time. There are coil, contact and timer storage. When coil is ON, its

    contact will act (contact a is close, contact b is open) when attaining desired time. The time value

    of timer is set by settings and each timer has its regular period. User sets the timer value and

    each timer has its timing period. Once the coil is OFF, the contact wont act (contact a is open

    and contact b is close) and the timer will be set to zero.

    Equipment indication: T0, T1,,T255. The symbol of equipment is T and the number uses

    decimal system. The different number range corresponds with the different timing period.

    Counter Counter is used to count. It needs to set counter before using counter (i.e. the pulse of

    counter). There are coil, contacts and storage unit of counter in counter. When coil is form OFF

    to ON, that means input a pulse in counter and the counter should add 1. There are 16-bit, 32-bit

    and high-speed counter for user to use.

    Equipment indication: C0, C1,,C255. The symbol of equipment is C and the number

    uses decimal.

  • 7/29/2019 Dvp Ss Manual

    8/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-6

    Data register PLC needs to handle data and operation when controlling each order, timer value and

    counter value. The data register is used to store data or parameters. It stores 16-bit binary

    number, i.e. a word, in each register. It uses two continuous number of data register to store

    double words.

    Equipment indication: D0, D1,,D9,999. The symbol of equipment is D and the number

    uses decimal.

    File register The file register can be used to store data or parameter when the register that PLC needs is

    not enough during handling data and parameter. It can store 16-bit binary number, i.e. a word, in

    each file register. It uses two continuous number of file register to handle double word. There are

    1600 file registers for EP series and 10000 file registers for EH series. There is not the real

    equipment number for file register, thus it needs to execute READ/WRITE of file register via

    commandsAPI147 MEMR,API148 MEMW or the peripheral equipment HPP and WPLSoft.

    Equipment indication: K0~K9,999. There is no equipment symbol and uses decimal

    number for number.

    Index register Index register E and F are 16-bit data register just the same as general data register. It can

    be wrote and read freely and has the function of index indication to use for character device, bit

    device and constants.

    Equipment indication: E0~E7, F0~F7. The symbols of equipment are E, F and the number

    uses decimal.

    The structure and explanation of ladder diagram:

    Ladder DiagramStructure

    Explanation Command Equipment

    Normally open, contact a LD X, Y, M, S, T, C

    Normally close, contact b LDI X, Y, M, S, T, C

    Serial normally open AND X, Y, M, S, T, C

    Parallel normally open OR X, Y, M, S, T, C

    Parallel normally close ORI X, Y, M, S, T, C

    Rising-edge trigger switch LDP X, Y, M, S, T, C

    Falling-edge triggerswitch

    LDF X, Y, M, S, T, C

    Rising-edge trigger inserial

    ANDP X, Y, M, S, T, C

    Falling-edge trigger inserial

    ANDF X, Y, M, S, T, C

  • 7/29/2019 Dvp Ss Manual

    9/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-7

    Ladder DiagramStructure

    Explanation Command Equipment

    Rising-edge trigger inparallel

    ORP X, Y, M, S, T, C

    Falling-edge trigger in

    parallelORF X, Y, M, S, T, C

    Block in serial ANB none

    Block in parallel ORB none

    Multiple outputMPSMRDMPP

    none

    Output command of coildrive OUT Y, M, S

    S

    Step ladder STL S

    Basic command,Application command

    Applicationcommand

    Please refer chapter 3 basic command andchapter 5 application command

    Inverse logic INV none

    Block: The block is the ladder diagram that made up of the serial or parallel calculation of two or above equipments. It

    will get the result of parallel block or serial block according to operation character.

    Serial block

    Parallel block

    Divergent line and combinative line: the vertical line is usually a separation for devices. This line is combination line

    for the left device (it means that there are at least two columns or above circuit at

    the left connect to this vertical line) this line is the divergent line for the right

    device (it means that there are at least two rows or above circuit connect to this

    line.

    1 2

    combinative line of block 1divergent line of block 2

    combinative line of block 2

  • 7/29/2019 Dvp Ss Manual

    10/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-8

    Network: this is the complete network that made up of devices and blocks. The vertical line or continuous line and the

    block or device that line can connect to is the same network.

    Independent network:Network1

    Network2

    Incomplete network:

    1.4 The Edition of PLC Ladder Diagram

    The program edited method is from left power line to right power line. (the right power line will be omitted during

    the edited of DPLSoft and WPLSoft.) After editing a row, go to editing the next row. The maximum contacts in a row

    are 11 contacts. If you need more than 11 contacts, you could have the new row and start with continuous line to

    continue more input devices. The continuous number will be produced automatically and the same input point can be

    used repeatedly. The drawing is shown as follows.

    Y100000

    00000

    X0 X1 X2 X3 X4 X5 X6 X7 X10 C0 C1

    X11 X12 X13

    The operation of ladder diagram is to scan from left upper corner to right lower corner. The output handling,

    including the operation frame of coil and application command, at the most right side in ladder diagram.

    Take the following diagram for example; we analyze the process step by step. The number at the right corner is

    the explanation order.

    TMR T0 K10

    Y1X0 X1 Y1 X4

    M3T0M0

    X3 M1

    122

    34

    55

    56

    78

  • 7/29/2019 Dvp Ss Manual

    11/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-9

    The explanation of command order:

    1 LD X0

    2 OR M03 AND X14 LD X3

    AND M1

    ORB5 LD Y1AND X4

    6 LD T0AND M3ORB

    7 ANB8 OUT Y1

    TMR T0 K10

    The detail explanation of basic structure of ladder diagram

    1. LD (LDI) command: give the command LD or LDI in the start of a block.

    LD command

    AND Block

    LD command

    OR Block

    The structures of command LDP and LDF are similar to the command LD. The difference is that command LDP

    and LDF will act in the rising-edge or falling-edge when contact is ON as shown in the following.

    X0

    OFF ON OFF

    Time

    Rising-edge

    X0

    OFF ON OFF

    Time

    Falling-edge

    2. AND (ANI) command: single device connects to a device or a block in series.

    ANDcommand

    ANDcommand

    The structures of ANDP and ANDF are the same but the action is in rising-edge or falling-edge.

    3. OR (ORI) command: single device connects to a device or a block.

    ORcommand

    ORcommand

    ORcommand

  • 7/29/2019 Dvp Ss Manual

    12/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-10

    The structures of ORP and ORF are the same but the action is in rising-edge or falling-edge.

    4. ANB command: a block connects to a device or a block in series.

    ANB command

    5. ORB command: a block connects to a device or a block in parallel.

    ORBcommand

    If there are several blocks when operate ANB or ORB, they should be combined to blocks or network from up to

    down or from left to right.

    6. MPS, MRD, MPP commands: Divergent memory of multi-output. It can produce many various outputs.

    The command MPS is the start of divergent point. The divergent point means the connection place between

    horizontal line and vertical line. We should determine to have contact memory command or not according to the

    contacts status in the same vertical line. Basically, each contact could have memory command but in some places of

    ladder diagram conversion will be omitted due to the PLC operation convenience and capacity limit. MPS command

    can be used for 8 continuous times and you can recognize this command by the symbol .

    MRD command is used to read memory of divergent point. Because the logical status is the same in the same

    horizontal line, it needs to read the status of original contact to keep on analyzing other ladder diagram. You canrecognize the command MRD by the symbol .

    MPP command is used to read the start status of the top level and pop it out from stack. Because it is the last

    item of the horizontal line, it means the status of this horizontal line is ending.

  • 7/29/2019 Dvp Ss Manual

    13/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-11

    You can recognize this command by the symbol .

    Basically, that is all right to use the above method to

    analyze but sometimes compiler will omit the same

    outputs as shown at the right.

    MPS

    MRD

    MPPMPP

    MPS

    7. STL command: this command is used in the syntax design for the Sequential Function Chart (SFC). This

    command helps the programmer to have clearer ideas on the program procedure, and thus the procedure will

    be more readable. As shown in the following diagrams, we can get clear procedure, and original step point will

    have the action of power loss after each step point S transfer to the next step point. In this way, we could

    transfer to our procedure diagram from the left diagram to the PLC structure diagram below.

    e

    S0

    S21

    S22

    M1002initialpulse

    M1002

    SET S0

    SET S21SS0

    SET S22S

    S21

    S

    S22S0

    RET

    8. RET command: you should add RET command after finishing step ladder program and RET command should

    add after STL command as shown in the following.

    eS

    S20

    RET

    eS

    S20

    RET

    Refer to chapter 4 for the structure of step ladder [ STL ] , [ RET ].

    1.5 The Conversion of PLC Command and Each Diagram Structure

  • 7/29/2019 Dvp Ss Manual

    14/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-12

    Ladder Diagram

    X0 X2 X1

    X1

    M1

    C0

    Y0

    SET S0

    M2 Y0

    M0

    X10Y10

    SET S10

    S0S

    X11Y11

    SET S11

    S10S

    SET S12

    SET S13

    X12Y12

    SET S20

    S11S

    X13S0

    RET

    S20S

    S12S

    S13S

    X0

    CNT C0 K10

    X1M0

    C0

    X1

    M2

    RST C0

    M1

    M2

    END

    LD X0

    OR X1

    LD

    OR

    X2

    M0

    ORI M1

    ANB

    LD

    AND

    M2

    Y0

    5

    1ORblock

    2 ORblock

    Serialblock

    3

    AND

    block

    Serial block

    4 ANI

    ORB

    ANI

    OUT

    AND

    SET

    STL

    LD

    X1

    Y0

    C0

    S0

    S0

    X10

    Multipleoutputs

    Step ladder Start

    State working item andstep point transfer

    Output state will keep onhandling according toprogram scan state

    7

    8

    8

    9

    10

    12

    13

    11

    14

    Y10

    S10

    S10

    OUT

    SET

    STL

    LD X11OUT

    SET

    SET

    SET

    STL

    LD

    OUT

    Y11

    S11

    S12

    S13

    S11

    X12

    Y12

    S10 state take out

    Take out X11 state

    State working item andstep point transfer

    S11 state take out

    Take out X12 state

    State working item andstep point transferSET

    STL

    STL

    STL

    LD

    OUT

    RET

    S20

    S20

    S12

    S13

    X13

    S0

    15

    LD S0

    CNT

    LD C0

    C0K1017

    18

    Simultaneousdivergence

    State working itemand step point transfer

    End of step ladder

    Return

    Read C0

    Multipleoutputs

    MPS

    AND X1

    OUT M0

    MRD

    ANI X1

    OUT M1MPP

    ANI

    OUT

    END

    M2

    M2

    Program End

    Syntax Fuzzy Structure

    The analytic process of correct ladder diagram should be from left to right or from up to down. But there are some

    exceptions as shown in the following.

    Example 1: there are two methods to use command to show the following ladder diagram but the result is the same.

  • 7/29/2019 Dvp Ss Manual

    15/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-13

    Good method Bad method

    LD X0 LD X0

    OR X1 OR X1

    LD X2 LD X2

    OR X3 OR X3

    ANB LD X4

    LD X4 OR X5OR X5 ANB

    X0 X2 X4

    X5X3X1

    ANB ANB

    The results for the above two programs to convert to ladder diagram are the same. Why one is better than the

    other? That is due to operation of MPU. The operation of the program in the left side is one block merges to another

    one. Although the length of the program at the right side is the same as the left one, the operation of the program in

    the right side is merged at the last. (command ANB is used to merge, it cant use more than 8 continuous times). In

    this program, it just needs to use continuous two times of command ANB and MPU allows that. But when the program

    needs to use more than continuous 8 times of command ANB, MPU wont allow. So the best method is to merge once

    the block is established and in this way the logic of programmer will be in order.

    Example 2: there are two methods to use command to show the following ladder diagram but the result is the same.

    Good method Bad method

    LD X0 LD X0

    OR X1 LD X1

    OR X2 LD X2

    OR X3 LD X3

    ORB

    ORB

    X0

    X1

    X2

    X3

    ORB

    The difference is very clear in these two programs. In the bad method, the more program code it needs and the

    operation memory of MPU also needs to increase. So that is better to decode in the order of the definition.

    The error figures of ladder diagram

    When editing ladder diagram, you can use all ladder symbols to make up all kinds of figures. When drawing

    ladder diagram, you should start from left power line and end with the right power line (the right power line will be

    omitted when using DPLSoft ladder diagram) due to the principle for PLC to handle figure program is from up to down

    and from left to right (it is drew from left to right and draw the next new row after finishing drawing a row). They are the

    common error figure in the following.

    It cant do OR operation upward.

  • 7/29/2019 Dvp Ss Manual

    16/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-14

    reverse flow power

    There is reverse power flow during the circuit thatis from input to output signal.

    The correct is output from right upper corner.

    If you want to merge or edit, the order should befrom left upper corner to right lower corner. Theblock of dot line should move up.

    It cant do parallel operation with empty device.

    Empty device cant do operation with other device.

    There is no device in the middle block.

    .

    The device in series should be arranged in parallelwith the block that it connects in series.

    The position of Label P should be in the first row ofthe complete network.

    The block that is connected in series should be

    arranged in parallel with the upper horizontal line.

    1.6 The Simplification of Ladder Diagram

    To put the block in the front of ladder diagram can omit command ANB when series block and parallel block

    connect in series.

  • 7/29/2019 Dvp Ss Manual

    17/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-15

    Command

    LD X0

    LD X1

    OR X2

    X0 X1

    X2

    ANB

    Command

    LD X1

    OR X2

    X0X1

    X2

    AND X0

    To put the block in the front of ladder diagram can omit command ORB when single equipment and block are

    connected in parallel.

    Command

    LD T0

    LD X1

    AND X2

    T0

    X1 X2

    ORB

    Command

    LD X1

    AND X2T0

    X1 X2

    OR T0

    In figure a of ladder diagram, it does not illegal due to the reverse power flow. In figure a, the upper block is

    shorter than lower block, you could make it legal by switching them.

    command

    LD X0

    OR X1

    AND X2

    LD X3

    AND X4

    X0

    X1 X2

    X3 X4

    Fig. aORB

    command

    LD X3

    AND X4

    LD X1

    OR X0

    AND X2

    X0

    X1 X2

    X3 X4

    Fig. bORB

  • 7/29/2019 Dvp Ss Manual

    18/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-16

    You can omit commands MPS, MPP when the multiple outputs in the same horizontal line dont need to operate

    with other input device.

    command

    MPS

    AND X0

    OUT Y1MPP

    X0

    Y1

    Y0

    OUT Y0

    command

    OUT Y0

    AND X0

    Y0

    Y1

    X0

    OUT Y1

    Correct the circuit of reverse flow power

    In the following examples, the figure at the left is the ladder diagram that is draw by our definition but there is

    reverse flow power in it. Therefore, we correct it and show it at the right side.

    Example 1:

    X0

    X3

    X6

    X1

    X4

    X7

    X2

    X5

    X10 LOOP1

    reverse flow power

    X0 X1 X2

    X3 X4 X5

    X10

    X6 X7 X5

    X10 LOOP1

    Example 2:

    X0

    X3

    X6

    X1

    X4

    X7

    X2

    X5

    X10 LOOP1

    reverse flow power

    X0

    X3

    X6

    X1

    X4

    X7

    X2

    X5

    X10

    reverse flow power

    LOOP1

    X0 X1 X2

    X3 X4 X5

    X6

    X3 X7 X10

    X6

    X0 X1 X7 X10

    LOOP2

    X4

    1.7 The Example for Designing Basic Program

  • 7/29/2019 Dvp Ss Manual

    19/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-17

    Start, Stop and Latching

    In the same occasions, it needs transient close button and transient open button to be start and stop switch.

    Therefore, if you want to keep the action, you should design latching circuit. There are several latching circuits in the

    following:

    Example 1: the latching circuit for priority of stop

    When start normally open contact X1=On, stop normally

    contact X2Off, and Y1=On are set at the same time, if

    X2=On, the coil Y1 will stop acting. Therefore, it calls priority of

    stop.

    X2

    Y1

    X1

    Y1

    Example 2: the latching circuit for priority of start

    When start normally open contact X1=On, stop normallycontact X2Off and Y1=On (coil Y1 will be active and

    latching) are valid at the same time, if X2=On, coil Y1 will be

    active due to latched contact. Therefore, it calls priority of start.

    X2

    Y1

    X1

    Y1

    Example 3: the latching circuit of SET and RST commands

    SET Y1

    RST Y1

    X1

    X2

    Top priori ty of stop

    The figure at the right side is latching circuit that made up

    of RST and SET command.

    It is top priority of stop when RST command is set behind

    SET command. When executing PLC from up to down, The

    coil Y1 is ON and coil Y1 will be OFF when X1 and X2 act at

    the same time, therefore it calls priority of stop.

    It is top priority of start when SET command is set after

    RST command. When X1 and X2 act at the same time, Y1 is

    ON so it calls top priority of start. SET

    Y1RST

    Y1

    X2

    X1

    Top priority of start

    Example 4: latched

    Auxiliary relay M512 is latched at the right side. (refer to

    PLC user manual) the circuit at the right side will be latched

    when power is on and it will be also latched once the power

    loss and power on again. Therefore the latched is continuous.

    X2

    M512

    X1

    SET

    RST M512

    Y1

    M512

    The common control circuit

  • 7/29/2019 Dvp Ss Manual

    20/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-18

    Example 5: condition control

    X3

    Y1

    X1

    Y1

    X4Y2

    X2

    Y2

    Y1

    X1

    X3

    X2

    X4

    Y1

    Y2

    X1 and X3 can start/stop Y1 separately, X2 and X4 can start/stop Y2 separately and they are all self latched

    circuit. Y1 is an element for Y2 to do AND function due to the normally open contact connects to Y2 in series.

    Therefore, Y1 is the input of Y2 and Y2 is also the input of Y1.

    Example 6: Interlock control

    X3

    Y1

    X1

    Y1

    X4

    Y2

    X2

    Y2

    Y1

    Y2

    X1

    X3

    X2

    X4

    Y1

    Y2

    The figure above is the circuit of interlock control. Y1 and Y2 will act according to the start contact X1 and X2.

    Y1 and Y2 will act not at the same time, once one of them acts and the other wont act. (This is called interlock.)

    Even if X1 and X2 are valid at the same time, Y1 and Y2 wont act at the same time due to up-to-down scan of

    ladder diagram. For this ladder diagram, Y1 has higher priority than Y2.

    Example 7: Sequential Control

    X3

    Y1

    X1

    Y1

    X4

    Y2

    X2

    Y2

    Y1

    Y2

    If add normally close contact Y2 into Y1 circuit to be

    an input for Y1 to do AND function. (as shown in the left

    side) Y1 is an input of Y2 and Y2 can stop Y1 after

    acting. In this way, Y1 and Y2 can execute in sequential.

    Example 8: Oscillating Circuit

    The period of oscillating circuit is T+T

  • 7/29/2019 Dvp Ss Manual

    21/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-19

    Y1

    Y1

    Y1

    T T

    The figure above is a very simple ladder step diagram. When starting to scan Y1 normally close contact, Y1

    normally close contact is close due to the coil Y1 is OFF. Then it will scan Y1 and the coil Y1 will be ON and output 1.

    In the next scan period to scan normally close contact Y1, Y1 normally close contact will be open due to Y1 is ON.

    Finally, coil Y1 will be OFF and output 0. Scan repeatedly, the period of oscillating circuit is nT+T.

    T0

    X0

    TMR

    Y1

    Y1

    T0

    Kn

    Y1

    T Tn

    X0

    The figure above uses timer T0 to control coil Y1 to be ON. After Y1 is ON, timer T0 will be closed at the next

    scan period and output Y1. The oscillating circuit will be shown as above. (n is the setting of timer and it is decimal

    number. T is the base of timer. (clock period))

    Example 9: Blinking Circuit

    T2TMR Kn2

    T1

    X0

    TMR

    Y1

    T2

    T1

    Kn1

    X0 T1

    Y1

    Tn1

    X0

    Tn2

    The figure above is common used oscillating circuit for indication light blinks or buzzer alarms. It uses two

    timers to control On/OFF time of Y1 coil. If figure, n1 and n2 are timer setting of T1 and T2. T is the base of timer

    (clock period)

    Example 10: Triggered Circuit

    Y1

    M0

    X0

    Y1

    Y1

    M0

    M0

    X0

    M0

    Y1

    T

  • 7/29/2019 Dvp Ss Manual

    22/458

    1Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual1-20

    In figure above, the rising-edge differential command of X0 will make coil M0 to have a single pulse of T (a

    scan time). Y1 will be ON during this scan time. In the next scan time, coil M0 will be OFF and normally close M0

    and normally close Y1 are all closed. However, coil Y1 will keep on being ON and it will make coil Y1 to be OFF once

    a rising-edge comes after input X0 and coil M0 is ON for a scan time. The timing chart is as shown above. This

    circuit usually executes alternate two actions with an input. From above timing: when input X0 is a square wave of a

    period T, output coil Y1 is square wave of a period 2T.

    Example 11: Delay Circuit

    T10

    X0

    TMR

    Y1

    T10

    K1000

    TB = 0.1 sec

    X0

    Y1

    100 seconds

    When input X0 is ON, output coil Y1 will be ON at the same time due to the corresponding normally close

    contact OFF makes timer T10 to be OFF. Output coil Y1 will be OFF after delay 100 seconds once input X0 is OFF

    and T10 is ON. Please refer to timing chart above.

    Example 12: Output delay circuit, in the following example, the circuit is made up of two timers. No matter input X0 is

    ON or OFF, output Y4 will be delay.

    T5

    T5

    TMR

    Y4

    T6

    X0

    K50

    Y4

    T6

    Y4

    TMR

    X0

    K30

    X0

    T5

    Y0

    T6

    5seconds

    3seconds

    Example13: Extend Timer Circuit

    T12TMR Kn2

    T11

    X0

    TMR

    Y1

    T11

    Kn1

    T12

    In this circuit, the total delay time from input X0 is

    close and output Y1 is ON= (n1+n2)* T. where T is

    clock period.

    Example 14: The method of enlarge counter range

  • 7/29/2019 Dvp Ss Manual

    23/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-21

    C6CNT Kn2

    C5

    X13

    CNT

    RST

    C5

    Kn1

    X14C5RST

    Y1

    C6

    C6

    The range of 16-bit counter is 0~32,767. If using

    two counters as figure in left side, the counter range

    can be enlarge to n1*n2. When counter C5 attains n1,

    counter C6 will counts one time and reset itself. Then

    counter C6 will count the pulse of X13. When counter

    C6 attains n2, the pulse of X13 will be n1*n2.

    Example 15: Traffic light control (by using step ladder command)

    VerticalLight

    HorizontalLight

    Traffic light control

    Red lightYellowlight

    Greenlight

    Greenblink light

    Verticallight

    Y0 Y1 Y2 Y2

    Horizontallight

    Y10 Y11 Y12 Y12

    Light Time 35 Sec 5 Sec 25 Sec 5 Sec

    Timing chart:

    25 Sec

    5 Sec 5 Sec

    5 Sec 5 Sec

    25 Sec

    Y0

    Y1

    Y2

    Y10

    Y11

    Y12

    VerticalLight

    Red

    Yellow

    Green

    HorizontalLight

    Red

    Yellow

    Green

  • 7/29/2019 Dvp Ss Manual

    24/458

  • 7/29/2019 Dvp Ss Manual

    25/458

    1 Working Principles of PLC Ladder Diagram

    DVP-PLC Application Manual 1-23

    Drawing by SFC Editor (WPLSoft )

    Drawing by SFC Internal Ladder Diagram View

    LAD-0

    S0ZRST S127

    M1002

    S0SET

    Transferred condition 1

    TRANS*

    T0

    S22

    Y2

    T2TMR K50

    M1013

    Transferred condition 4

    TRANS*

    T13

    TRANS*

    T13

    TRANS*

    T13

    TRANS*

    T13

    TRANS*

    T13

    TRANS*

    T13

    TRANS*

    T13

    0

    2

    3

    4

    5

    6

    7

    1

    LAD-0

    S0

    S20

    S21

    S22

    S23

    S30

    S31

    S32

    S33

    S0

    Transferred condition 7

    TRANS*T12

    TRANS*T12

    TRANS*T12

    TRANS*T12

    TRANS*T12

    TRANS*T12

    TRANS*T12

  • 7/29/2019 Dvp Ss Manual

    26/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-1

    2.1 Summary of DVP-PLC Device Number

    ES, EX, SS Models:

    Type Device Item Usage Range Function

    X External input relayX0~X177, 128 points, octalnumber system

    Correspond toexternal input point

    Y External output relay

    Y0~Y177, 128 points, octal

    number system

    Total is256

    points

    Correspond to

    external output point

    For generalM0~M511, M768~M999,744 points

    For latched * M512~M767, 256 pointsM Auxiliary

    For specialM1000~M1279, 280 points(some are latched)

    Total is1280points

    Contacts can switch toOn/Off in program(some is latched)

    100ms timer T0~T63, 64 points

    10ms counterT64~T126, 63 points (whenM1028=On, it is 10ms,M1028=Off, it is 100ms)

    T Timer

    1ms timer T127, 1 points

    Total is128

    points

    When the timerindicated by TMRcommand attains thesetting, the T contactwith the same numberwill be ON.

    16-bit count up for general C0~C111, 112 points

    16-bit count up for latched * C112~C127, 16 points

    Total is128

    points

    1-phase inputC235~C238, C241, C242,C244, 7 points

    1-phase 2 inputs C246, C247, C249, 3 points

    C Counter32-bit countup/downhigh-speedcounter forlatched*

    2-phase 2 inputs C251, C252, C254, 3 points

    Total is13

    points

    When the counterindicated by CNT(DCNT) commandattains the setting, theC contact with thesame number will beON.

    Initial step point latched * S0~S9, 10 points

    Zero point return latched *S10~S19, 10 points (usewith IST command)

    Re

    laybitmode

    SSteppoint

    latched * S20~S127, 108 points

    Total is128

    points

    Usage device of stepladder diagram (SFC)

    T Present value of timer T0~T127, 128 pointsWhen timer attains,the contact of timerwill be ON.

    C Present value of counterC0~C127, 16-bit counter, 128C235~C254, 32-bit counter, 13 points

    When timer attains,the contact of timerwill be ON.

    For general D0~D407, 408 points

    For latched * D408~D599, 192 points

    Total is600 points

    For special

    D1000~D1311, 312 points(for V4.9 and above)D1000~D1143, 144 points(for V4.8 and below)

    RegisterWORDdata

    DDataregister

    For index indication E(=D1028), F(=D1029), 2points

    Total is312 points

    (144

    points)

    It can be memoryarea for storing data.E and F can be usedas the specialpurpose of index

    indication

    N For master control nested loop N0~N7, 8 pointsControl point ofmaster control nestedloop

    P For CJ, CALL commands P0~P63, 64 pointsLocation pointer ofCJ, CALL

    Time interruptI6, 1 point (10~99ms)

    (for Version 5.7)

    External interrupt I001, I101, I201, I301, 4 points

    Pointer

    I Interrupt

    Communication interrupt I150

    Location pointer ofinterrupt subroutine

    K DecimalK-32,768 ~ K32,767 (16-bit operation)

    K-2,147,483,648 ~ K2,147,483,647 (32-bit operation)

    Consta

    nt

    H HexadecimalH0000 ~ HFFFF (16-bit operation)H00000000 ~ HFFFFFFFF (32-bit operation)

    * latched area is fixed, it cant be changed.

  • 7/29/2019 Dvp Ss Manual

    27/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-2

    EP/SA models:

    Type Device Item Range Function

    X External input relayX0~X177, 128 points, octal number

    system

    Correspond to

    external input point

    Y External output relayY0~Y177, 128 points, octal number

    system

    Total

    is

    256points

    Correspond to

    external output point

    For general M0~M511, 512 points (*1)

    For latched *M512~M999, 488 points (*3)

    M2000~M4095, 2096 points (*3)MAuxiliary

    Relay

    For specialM1000~M1999, 1000 points (some

    are latched)

    Total

    is

    4096

    points

    Contacts can be

    switched during

    ON/OFF in the

    program (some is

    latched)

    100ms

    T0~T199, 200 points (*1)

    T192~T199 for subroutine

    T250~T255, 6 points (accumulative

    type) (*4)

    10ms

    T200~T239, 40 points (*1)

    T240~T245, 6 points (accumulative

    type) (*4)

    T Timer

    1msT246~T249, 4 points (accumulative

    type) (*4)

    Total

    is

    256

    points

    When the timer that

    TMR command

    indicates attains the

    setting, the T contact

    with the same

    number will be On.

    C0~C95, 96 points (*1)16-bit count upC96~C199, 104 points (*3)

    C200~C215, 16 points (*1)32-bit count up/down

    C216~C234, 19 points (*3)

    C235~C244, 1-phase 1 input, 9

    points (*3)

    C246, C247, C249, 1-phase 2

    inputs, 3 points (*3)

    C Counter

    32-bit high-speed

    counter

    C251, C252, C254, 2-phase 2

    inputs, 3 points (*3)

    Total

    is

    250

    points

    When the timer that

    CNT(DCNT)

    command indicates

    attains, the contact C

    with the same

    number will be On.

    Initial step point S0~S9, 10 points (*1)

    Zero point returnS10~S19, 10 points (use with IST

    command) (*1)

    For general S20~S512, 492 points (*1)

    For latched * S512~S895, 384 points (*3)

    R

    elaybitmode

    SStep

    point

    For alarm S896~S1023, 128 points (*3)

    Total

    is

    1024

    points

    Usage device of step

    ladder diagram

  • 7/29/2019 Dvp Ss Manual

    28/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-3

    Type Device Item Range Function

    T Present value of timer T0~T255, 256 points

    When timer attains,

    the contact will be

    On.

    CPresent value of counter C0~C199, 16-bit counter, 200 points

    C200~C254, 16-bit counter, 50 points

    When timer attains,

    the contact will be On.

    For general D0~D199, 200 points (*1)

    For latched*

    D200~D999, 800 points (*3)

    D2000~D4999, 3000 points

    (*3)

    For special D1000~D1999, 1000 points

    D Data

    register

    For index indication E0~E3, F0~F3, 8 points (*1)

    Total is

    5000 points

    It is the memory area

    for storing data. E and

    F can be used as

    special purpose of

    index indication

    RegisterWORDdata

    None File register * K0~K1599 (1600 points) (*4) It is extension register

    for storing data

    N Master control nested N0~N7, 8 pointsThe control point of

    master control nested

    P For CJ, CALL commands P0~P255, 256 pointsThe location point of

    CJ, CALL

    External interruptI001, I101, I201, I301, I401, I501, total is 6

    points

    Time interrupt I6, I7, 2 points (1~99ms,time base=0.1ms)

    High-speed counter

    reaches interruptI010, I020, I030, I040, I050, I060, 6 points

    Pointer

    IFor

    interrupt

    Communication interrupt I150

    The location point of

    interrupt subroutine.

    K Decimal number systemK-32,768 ~ K32,767 (16-bit operation)

    K-2,147,483,648 ~ K2,147,483,647 (32-bit operation)

    Constant

    H Hexadecimal number systemH0000 ~ HFFFF (16-bit operation)

    H00000000 ~ HFFFFFFFF (32-bit operation)

    *1: non-latched area is fixed, it cant be changed.

    *2: non-latched area can be changed to latched area by parameter setting.

    *3: latched area can be changed to non-latched area by parameter setting.

    *4: latched area is fixed, it cant be modified. (the area marked withcant be changed)

  • 7/29/2019 Dvp Ss Manual

    29/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-4

    Latched setting for each EP/SA model:

    For general For latched Special auxiliary relay Latched

    M0~M511 M512~M999 M1000~M1999 M2000~M4095

    Factory setting islatched

    Factory setting is latchedM

    Auxiliary relayIt is fixed to be

    non-latched Start: D1200(K512)End: D1201(K999)

    Some are latched and

    cant be changed Start: D1202(K2000)End: D1203(K4095)

    100 ms 10 ms 10ms 1 ms 100 ms

    T0 ~T199 T200~T239 T240~T245 T246~T249 T250~T255T

    TimerIt is fixed to be

    non-latchedIt is fixed to be

    non-latchedAccumulative type

    It is fixed to be latched

    16 bits count up 32 bits count up/down32 bits count up/down high

    speed counter

    C0~C95 C96~C199 C200~C215 C216~C234 C235~C255

    It is fixed to belatched It is fixed to belatched Factory setting is latchedCCounter

    It is fixed to benon-latched

    Start: D1208K96

    End: D1209K199

    It is fixed tobe

    non-latched

    Start: D1210K216

    End: D1211K234

    Start: D1212K235

    End: D1213K255

    Forgeneral

    LatchedSpecialregister

    Latched For general

    S0~S9 S10~S19 S20~S511 S512~S895 S896~S1023

    Factory setting is latchedS

    Step relay

    It is fixed to be non-latched Start: D1214K512

    End: D1215K895

    It is fixed to be latched

    For general Latched Special register LatchedD0~D199 D200~D999 D1000~D1999 D2000~D9999

    Factory setting islatched

    Factory setting is latchedDRegister It is fixed to be

    non-latched Start: D1216 (K200)End: D1217 (K999)

    Some are latched andcant be changed Start: D1218 (K2000)

    End: D1219 (K4999)

    K0~K1599Data Register

    It is fixed to be latched

    EH model:

    Type Device Item Range Function

    X External input relay X0~X377, 256 points, octal number systemCorresponds toexternal input point

    Y External output relay Y0~Y377, 256 points, octal number system

    Totalis

    512points

    Corresponds toexternal output point

    For general M0~M499, 500 points (*2)

    For latchedM500~M999, 500 points (*3)M2000~M4095, 2096 points (*3)M

    Auxiliaryrelay

    For specialM1000~M1999, 1000 points (some arelatched)

    Totalis

    4096points

    Contacts can beswitched betweenOn/Off in the program(some is latched)

    100ms

    T0~T199, 200 points (*2)T192~T199 is for subroutine

    T250~T255, 6-point Accumulative type (*4)

    10msT200~T239, 40 points (*2)

    T240~T245, 6-point Accumulative type (*4)

    Relaybitmode

    T Timer

    1ms T246~T249, 4-point Accumulative type (*4)

    Total

    is256

    points

    When the timer thatset by TMR

    command attains, theT contact with thesame number will beOn.

  • 7/29/2019 Dvp Ss Manual

    30/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-5

    Type Device Item Range Function

    16-bit count upC0~C99, 100 points (*2)C100~C199, 100 points (*3)

    32-bit countup/down

    C200~C219, 20 points (*2)C220~C234, 15 points (*3)C Counter

    High-speedcounter

    C235~C244, 1-phase 1 input, 10 points (*3)

    C246~C249, 1-phase 2 inputs, 4 points(*3)C251~C254, 2-phases 2 inputs, 4 points (*3)

    Totalis

    253

    points

    When the timer thatset by CNT(DCNT)command attains, the

    contact C will be On.

    Initial steppoint

    S0~S9, 10 points (*2)

    For zero pointreturn

    S10~S19, 10 points (use with IST command)(*2)

    For general S20~S499, 480 points (*2)

    For latched S500~S899, 400 points (*3)

    SSteppoints

    For alarm S900~S1023, 124 points (*3)

    Totalis

    1024points

    Usage device of stepladder diagram (SFC)

    T Present value of timer T0~T255, 256 pointsWhen timer attains,the contact of timerwill be On.

    C Present value of counterC0~C199, 16-bit counter, 200 pointsC200~C254, 132-bit counter, 53 points

    When timer attains,the contact of timerwill be On.

    For general D0~D199, 200 points, (*2)

    For latchedD200~D999, 800 points (*3)D2000~D9999, 8000 points (*3)

    For special D1000~D1999, 1000 points

    DDataregister

    For index E0~E7, F0~F7, 16 points (*1)

    Total is10000points

    It is the memory areafor storing data. Eand F can be used asspecial purpose ofindex indication

    RegisterWORDdata

    None File register K0~K9999(10000 points) (*4)Extension register forstoring data

    N Master control nested N0~N7, 8 pointsMaster control nested

    control pointP For CJ, CALL commands P0~P255, 256 points

    The location pointer ofCJ, CALL

    External interrupt

    I00(X0), I10(X1), I20(X2), I30(X3), I40

    (X4), I50(X5), 6 points

    (=1, rising-edge trigger , =0, falling-edge

    trigger )

    Time interrupt

    I6, I7, I8, 3 points(1~99ms) time

    base=1msI8, 1 point (1~99, time base=0.1ms)

    High-speed counterattained interrupt

    I010, I020, I030, I040, I050, I060, 6 points

    Pulse interrupt I110, I120, I130, I140, 4 points

    Pointer

    I

    Interrupt

    Communicationinterrrupt

    I150

    The location pointer ofinterrupt subroutine

    K Decimal systemK-32,768 ~ K32,767 (16-bit operation)K-2,147,483,648 ~ K2,147,483,647 (32-bitoperation)

    Constant

    H Hexadecimal systemH0000 ~ HFFFF (16-bit operation)H00000000 ~ HFFFFFFFF (32-bit operation)

  • 7/29/2019 Dvp Ss Manual

    31/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-6

    *1: the area of non-latched is fixed, it cant be changed.

    *2: the area of non-latched, it can be changed to latched area by parameter setting.

    *3: latched area can be changed to non-latched area by parameter setting.

    *4: latched area is fixed, it cant be modified. (the area marked withcant be changed)

    Latched setting for each EH model:

    * 1: HFFFF means factory setting is non-latched.

    When switching between power On/Off or MPU RUN/STOP mode, the memory type of version 5.5 and higher of ES,

    ES/EX/SS series will be as following:

    Memory typePower

    Off=>OnSTOP=>RUN RUN=>STOP

    Clear all M1031Non-latched

    area

    Clear all M1032latched area

    Factorysetting

    When M1033=Off, clearNon-latched Clear

    When M1033=On, unchangedClear Unchanged 0

    Latched Unchanged Unchanged Clear Unchanged

    Special M,Special D,index register

    Initial Unchanged UnchangedInitial

    setting

    For general For latched Special auxiliary relay Latched

    M0~M499 M500~M999 M1000~M1999 M2000~M4095MAuxiliary relay

    Start: D1200(K500)End: D1201(K999)

    Some are latched andthey cant be changed.

    Start: D1202(K2000)End: D1203(K4095)

    100 ms 10 ms 10ms 1 ms 100 ms

    T0 ~T199 T200~T239 T240~T245 T246~T249 T250~T255

    Factory setting isnon-latched

    Factory setting isnon-latched

    TTimer

    Start: D1204 (HFFFF)*1

    End: D1205 (HFFFF)*1

    Start: D1206 (HFFFF)*1

    End: D1207 (HFFFF)*1

    Accumulative typeFixed latched

    16-bit count up 32-bit count up/down 32-bit high-speed count up/down

    C0~C99 C100~C199 C200~C219 C220~C234 C235~C245 C246~C255

    Non-latched(default)

    Latched (default)Non-latched

    (default)Latched(default)

    Latched (default)C

    Counter

    Start: D1208 (K100)End: D1209 (K199)

    Start: D1210 (K220)End: D1211 (K234)

    Start: D1212 (K235)End: D1213 (K255)

    InitialZero point

    returnFor general Latched Step point for alarm

    S0~S9 S10~S19 S20~S499 S500~S899 S900~S1023

    Non-latched (default) Latched (default)S

    Step relay

    Start: D1214 (K500)End: D1215 (K899)

    Always is latched

    For general Latched Special register Latched

    D0~D199 D200~D999 D1000~D1999 D2000~D9999

    Non-latched (default) Latched (default) Latched (default)D

    Register

    Start: D1216 (K200)End: D1217 (K999)

    Some is latched, it cantbe changed Start: D1218 (K2000)

    End: D1219 (K9999)

  • 7/29/2019 Dvp Ss Manual

    32/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-7

    The memory type of EP/SA/EH models will be as following:

    Memory typePower

    Off=>OnSTOP=>RUN RUN=>STOP

    Clear all M1031Non-latched

    area

    Clear all M1032latched area

    Factorysetting

    When M1033=Off, clearNon-latched Clear

    When M1033=On, No changeClear Unchanged 0

    Latched Unchanged Unchanged Clear 0

    Special M,Special D,index register

    Initial Unchanged UnchangedInitial

    setting

    File Register Unchanged 0

    2.2 Value, constant [K] / [H]

    K DecimalK-32,768 ~ K32,767 (16-bit operation)K-2,147,483,648 ~ K2,147,483,647 (32-bit operation)

    Constant

    H HexadecimalH0 ~ HFFFF (16-bit operation)H0 ~ HFFFFFFFF (32-bit operation)

    There are five value types for DVP-PLC to use by the different control destination. The following is the

    explanation of value types.

    1. Binary Number (BIN)

    It uses binary system for the PLC internal operation or storage. The relative information of binary system is in the

    following.

    Bit : Bit is the basic unit of binary system, the status are 1 or 0.

    Nibble : It is made up of continuous 4 bits, such as b3~b0. It can be used to representnumber 0~9 of decimal or 0~F of hexadecimal.

    Byte : It is made up of continuous 2 nibbles, i.e. 8 bits, b7~b0). It can used torepresent 00~FF of hexadecimal system.

    Word : It is made up of continuous 2 bytes, i.e. 16 bits, b15~b0. It can used torepresent 0000~FFFF of hexadecimal system.

    Double Word : It is made up of continuous 2 words, i.e. 32 bits, b31~b0. It can used torepresent 00000000~FFFFFFFF of hexadecimal.

    The relations among bit, nibble, byte, word, and double word of binary number are shown as follows.

    NB0NB1NB2NB3NB4NB5NB6NB7

    BY3 BY2 BY1 BY0

    W1

    DW

    W0

    Double Word

    Word

    Byte

    Nibble

    Bi t

    2. Octal Number (OCT)

    The numbers of external input and output terminal of DVP-PLC use octal number.Example:

    External input: X0~X7, X10~X17(device number)

  • 7/29/2019 Dvp Ss Manual

    33/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-8

    External output: Y0~Y7, Y10~Y17(device number)

    3. Decimal Number (DEC)

    The suitable time for decimal number to use in DVP-PLC system.

    To be the setting value of timer T or counter C, such as TMR C0 K50. (K constant)

    To be the device number of S, M, T, C, D, E, F, P, I. For example: M10, T30. (device number)

    To be operand in application command, such as MOV K123 D0. (K constant)

    4. BCD (Binary Code Decimal, BCD)

    It shows a decimal number by a unit number or four bits so continuous 16 bits can use to represent the

    four numbers of decimal number. BCD code is usually used to read the input value of DIP switch or output

    value to 7-segment display to be display.

    5. Hexadecimal Number (HEX)

    The suitable time for hexadecimal number to use in DVP-PLC system.

    To be operand in application command. For example: MOV H1A2B D0. (constant H)

    Constant K:

    In PLC, it is usually have K before constant to mean decimal number. For example, K100 means 100 in

    decimal number.

    Exception:

    The value that is made up of K and bit equipment X, Y, M, S will be bit, byte, word or double word. Forexample, K2Y10, K4M100. K1 means a 4-bit data and K2~K4 can be 8, 12 and 16-bit data separately.

    Constant H:

    In PLC, it is usually have H before constant to mean hexadecimal number. For example, H100 means 100 in

    hexadecimal number.

    Reference Chart:

    Binary(BIN)

    Octal(OCT)

    Decimal(DEC)

    BCD(Binary Code Decimal)

    Hexadecimal(HEX)

    For PLC internal operationEquipment

    X, Y number

    Constant K,

    equipment M, S, T, C,D, E, F, P, I number

    For DIP Switch and 7-segmentdisplay Constant H

    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

    0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1

    0 0 0 0 0 0 1 0 2 2 0 0 0 0 0 0 1 0 2

    0 0 0 0 0 0 1 1 3 3 0 0 0 0 0 0 1 1 3

    0 0 0 0 0 1 0 0 4 4 0 0 0 0 0 1 0 0 4

    0 0 0 0 0 1 0 1 5 5 0 0 0 0 0 1 0 1 5

    0 0 0 0 0 1 1 0 6 6 0 0 0 0 0 1 1 0 6

    0 0 0 0 0 1 1 1 7 7 0 0 0 0 0 1 1 1 7

    0 0 0 0 1 0 0 0 10 8 0 0 0 0 1 0 0 0 8

    0 0 0 0 1 0 0 1 11 9 0 0 0 0 1 0 0 1 9

    0 0 0 0 1 0 1 0 12 10 0 0 0 1 0 0 0 0 A0 0 0 0 1 0 1 1 13 11 0 0 0 1 0 0 0 1 B

    0 0 0 0 1 1 0 0 14 12 0 0 0 1 0 0 1 0 C

    0 0 0 0 1 1 0 1 15 13 0 0 0 1 0 0 1 1 D

  • 7/29/2019 Dvp Ss Manual

    34/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-9

    Binary(BIN)

    Octal(OCT)

    Decimal(DEC)

    BCD(Binary Code Decimal)

    Hexadecimal(HEX)

    For PLC internal operationEquipment

    X, Y number

    Constant K,equipment M, S, T, C,D, E, F, P, I number

    For DIP Switch and 7-segmentdisplay

    Constant H

    0 0 0 0 1 1 1 0 16 14 0 0 0 1 0 1 0 0 E

    0 0 0 0 1 1 1 1 17 15 0 0 0 1 0 1 0 1 F0 0 0 1 0 0 0 0 20 16 0 0 0 1 0 1 1 0 10

    0 0 0 1 0 0 0 1 21 17 0 0 0 1 0 1 1 1 11

    :::

    :::

    :::

    :::

    :::

    0 1 1 0 0 0 1 1 143 99 1 0 0 1 1 0 0 1 63

    2.3 The Numbering and Function of External Input/Output Contact [X] / [Y]

    Input/output contact number:(octal number)

    For MPU, the number of input and output contact will be counted from X0 and Y0. The number will be changed

    with points of MPU. For I/O extension unit, the number of input / output terminal is counted with the connection

    sequence of MPU.

    For ES, EX, SS Models:

    Model no DVP-14ES DVP-14SS DVP-20EX DVP-24ES DVP-32ES DVP-60ES Extension I/O

    Input XX0~X7

    (8 Points)

    X0~X7

    (8 Points)

    X0~X7

    (8 Points)

    X0~X17

    (16 Points)

    X0~X17

    (16 Points)

    X0~X43

    (36 Points)

    X20(X50)~X177

    (Note)

    Output YY0~Y5

    (6 Points)

    Y0~Y5

    (6 Points)

    Y0~Y5

    (6 Points)

    Y0~Y7

    (8 Points)

    Y0~Y17

    (16 Points)

    Y0~Y27

    (24 Points)

    Y20(Y30)~Y177

    (Note)

    Note: Besides DVP-60ES, the started input number of extension unit is from X20 and the started output

    number of extension unit from Y20. The started input number of DVP-60ES is X50 and the started

    output number of DVP-60ES is Y30. The number of extension I/O is increased by 8 times and if it is

    less than 8 points, it will count with 8 points.

    EP/SA model:

    Model no DVP-12SA (Note1) DVP-14EP DVP-32EP Extension I/O

    Input X X0~X7 (8 points) X0~X7 (8 points) X0~X17 (16 points) X20~X177 (note 2)

    Output Y Y0~Y3 (4 points) Y0~Y7 (8 points) Y0~Y17 (16 points) Y20~Y177 (note 2)

    Note 1: All SA functions are the same as EP except function extension card. All SA extension units share

    with SS series.

    Note 2: The started input number of extension unit is from X20 and the started output number of extension

    unit from Y20. The number of extension I/O is increased by 8 times and if it is less than 8 points, it

    will count with 8 points.

  • 7/29/2019 Dvp Ss Manual

    35/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-10

    EH model:

    Model no DVP-16EH DVP-20EH DVP-32EH DVP-48EH DVP-64EH DVP-80EH Extension I/O

    Input XX0~X7

    (8 points)

    X0~X13(12

    points)

    X0~X17

    (16 points)

    X0~X27

    (24 points)

    X0~X37

    (32 points)

    X0~X47

    (40 points)

    X20~X377

    (note)

    Output YY0~Y7

    (8 points)

    Y0~Y7(8

    points)

    Y0~Y17

    (16 points)

    Y0~Y27

    (24 points)

    Y0~Y37

    (32 points)

    Y0~Y47

    (40 points)

    Y20~Y377

    (note)

    Note: Besides DVP-16EH and DVP-20EH, the started input/output number of extension unit starts with the

    last number of MPU. The started input number of DVP-60EH is X20 and the started output number

    of DVP-60EH is Y20. The numbers of extension I/O are sequential numbers. The input number can

    be up to X377 and output number can be up to Y377.

    Input relay: X0~X377

    The number of input relay (or called input terminal) uses octal number. The points of EH model can be up

    to 256 points, the range as follows: X0~X7, X10~X17, , X370~X377.

    Output relay: Y0~Y377

    The number of output relay (or called output terminal) uses octal number. The points of EH model can be

    up to 256 points, the range as follows: Y0~Y7, Y10~Y17, , Y370~Y377.

    Input/output contact Function:

    The function of input contact X: input contact X reads input signal and enter PLC by connecting with inputequipment. It is unlimited usage times for A contact or B contact of each input contact X in program. The

    On/Off of input contact X can be changed with the On/Off of input equipment but cant be changed by using

    peripheral equipment (HPP or WPLSoft).

    ( There is a special relay M1304 in EH model to force input contact X On/Off by peripheral equipment

    HPP or WPLSoft, but PLC wont receive any external input signal at this time.)

    Output contact Y Function:

    The mission of output contact Y is to drive the load that connects to output contact Y by sending On/Off

    signal. There are two kinds of output contact: one is relay and the other is transistor. It is unlimited usage

    times for A or B contact of each output contact Y in program. But there is number for output coil Y and it is

    recommended to use one time in program. Otherwise, the output result will be decided by the circuit of last

    output Y with PLC program scan method.

  • 7/29/2019 Dvp Ss Manual

    36/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-11

    X0

    X10

    Y0

    Y0

    1

    2

    Y0 is repeated

    The output of Y0 will be decided by circuit 2 , i.e.

    decided by On/Off of X10.

    The Handling Process of PLC Program (Batch I/O)

    X0

    Y0

    Y0

    M0

    input X

    input terminal

    read in memory

    Input signal memory

    DeviceMemory

    read X0 state from memory

    Write Y0 state into

    read Y0 state from memory

    Write M0 state into

    Output

    Program

    Input signal

    output

    Y output

    output terminal

    output latched memory

    Input signal:

    1. PLC will read the On/Off of input signal into the

    memory of input signal before executing

    program.

    2. The input signal state in memory wont change

    if On/Off of the input signal changes during

    executing. The new On/Off state will be read

    into memory in the next scan.

    3. The delay time from the changes of external

    signal OnOff or OffOn to the contact will be

    10ms.

    Program:

    PLC executes each command in program from

    address 0 after reading On/Off state of input

    signal in input signal memory and save each

    On/Off of output coil into each equipment

    memory.

    Output:

    1. When executing END command, send On/Off

    state of Y in memory to output latched memory.

    In fact, this memory is the coil of output relay.2. The delay time from the change of OnOff or

    OffOn of relay coil to contact On/Off.

    2.4 The Numbering and Function of Auxiliary Relay [M]

    The number of auxiliary relay:(decimal number)

    ES, EX, SS models:

    For general M0~M511, M768~M999, 744 points. It is fixed to be non-latched area.

    For latched M512~M767, 256 points. It is fixed to be latched area.Auxiliary relayM

    For special M1000~M1279, 280 points. Some are latched.

    Total is1280

    points

  • 7/29/2019 Dvp Ss Manual

    37/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-12

    EP/SA models:

    For general M0~M511, 512 points. It is fixed to be non-latched area.

    For latchedM512~M999, M2000~M4095, 2584 points. It can be changed tonon-latched area by parameters.

    Auxiliary relayM

    For special M1000~M1999, 1000 points.

    Total is4096points

    EH models:

    For generalM0~M499, 500 points. It can be changed to latched area by settingparameters.

    For latchedM500~M999, M2000~M4095, 2596 points. It can be changed tonon-latched area by setting parameters.

    Auxiliary relayM

    For special M1000~M1999, 1000 points. Some are latched.

    Total is4096points

    Auxiliary Relay Function

    There are output coil and A, B contacts in auxiliary relay M and output relay Y. It is unlimited usage times in

    program. User can control loop by using auxiliary relay, but cant drive external load directly. There are three types

    divided by its characteristics.

    1. Auxiliary relay for general : It will reset to OFF when power loss during running. Its state will be OFF whenpower on after power loss.

    2. Auxiliary relay for latched : The state will be saved when power loss during running and the state whenpower on after power loss will be the same as the state before power loss.

    3. Auxiliary relay for special : Each special auxiliary relay has its special function. Please dont use undefinedauxiliary relay. Please refer to 2.10 Special relay and special register for eachspecial auxiliary relay and 2.11 Functions of special auxiliary relay and special

    registers.

    2.5 The Numbering and Function of Step Relay [S]

    The numbering of auxiliary relay (by decimal number):

    ES, EX, SS models:

    Initial latched S0~S9, 10 points. It is fixed to be latched area.

    Zero point

    return latched

    S10~S19, 10 points. (use with IST command) It is fixed to be

    latched area.Step relay S

    Latched S20~S127, 108 points. It is fixed to be latched area.

    Total is

    128

    points

    EP/SA Models:

    For initial S0~S9, 10 points. It is fixed to be non-latched area.

    For zero point

    return

    S10~S19, 10 points. (use with IST command) It is fixed to be

    non-latched area.

    For general S20~S511, 492 points. It is fixed to be non-latched area.

    For latchedS512~S895, 384 points. It can be changed to be non-latched area

    by parameters.

    Step relay S

    For alarm S896~S1023, 128 points. It is fixed to be latched area.

    Total is

    1024

    points

  • 7/29/2019 Dvp Ss Manual

    38/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-13

    EH Models:

    For initial S0~S9, 10 points. It can be latched area by setting parameters.

    For zero point

    return

    S10~S19, 10 points. (use with IST command). It can be latched

    area by setting parameters.

    For general S20~S499, 480 points. It can be latched area by setting parameters.

    For latchedS500~S899, 400 points. It can be non-latched area by setting

    parameters.

    Step relay S

    For alarmS900~S1023, 124 points. It can be latched area by setting

    parameters.

    Total is

    1024points

    The function of step relay:

    Step relay S is the basic equipment of step ladder diagram and it can set process easily in PLC. In step ladder

    diagram (or call Sequential Function Chart, SFC), it should be used with command STL, REL and etc.

    There are 1024 points, S0~S1023, in step relay S. Like output relay Y, there are output coil and A, B contacts in

    each step relay S and unlimited usage times in program. But it cant drive external load directly. Step relay (S) can be

    used as general auxiliary relay when not use with step command. There are four types divided by its characteristics.

    1. Initial step relay : S0~S9, 10 points.In Sequential Function Chart (SFC), it is the step point for initiating.

    2. Zero point return steprelay

    : S10~S19, 10 points.S10 S19 are for zero point return when usingAPI 60 IST in program. If it cantuse IST command, they will be used as general step relay.

    3. General step relay : EP/SA model: S20~S511, 492 points. EH mode: S20~S499, 480 points.

    Those step points that are used as general in sequential function chart (SFC).They will be cleared when power loss after running.

    4. Latched step relay : ES, EX, SS models: S20~S127, 108 points. EP models: S512~S895,384points. EH models: S500~S899, 400 points.In sequential function chart (SFC), latched step relay will be saved when powerloss after running. The state of power on after power loss will be the same asthe sate before power loss.

    5. Step relay for alarm : EP/SA models: S896~S1023, 128 points. EH models: S900~S1023, 124points.The step relay for alarm uses with alarm drive commandAPI 46 ANS to be thecontact for alarm. It is used to record warning and eliminate externalmalfunction.

    2.6 The Numbering and Function of Timer [T]

    The numbering of timer (by decimal number):

    ES, EX, SS models:

    100ms for general T0~T63, 64 points

    10ms for generalT64~T126, 63 points (when M1028=On, it is 10ms. when M1028=Off, it

    is 100ms)Timer T

    1ms for general T127, 1 points

    Total is

    128

    points

  • 7/29/2019 Dvp Ss Manual

    39/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-14

    EP/SA model:

    100ms for general T0~T199, 200 points. (T192~T199 are the timers for subroutine.)

    100ms foraccumulative

    T250~T255, 6 points. It is fixed to be latched area.

    10ms for general T200~T239, 40 points.

    10ms for

    accumulative

    T240~T245, 6 points. It is fixed to be latched area.

    Timer T

    1ms foraccumulative

    T246~T249, 4 points. It is fixed to be latched area.

    Total is256

    points

    EH model:

    100ms for generalT0~T199, 200 points. It can be latched area by setting parameters.(T192~T199 are the timers for subroutine.)

    100ms foraccumulative

    T250~T255, 6 points. It is fixed to be latched area.

    10ms for general T200~T239, 40 points. It can be latched area by setting parameters.

    10ms foraccumulative

    T240~T245, 6 points. It is fixed to be latched area.

    Timer T

    1ms foraccumulative

    T246~T249, 4 points. It is fixed to be latched area.

    Total is256

    points

    Timer function:

    The unit of timer is 1ms, 10ms and 100ms. The count method is count up. The output coil will be ON when the

    present value of timer equals to the settings. The setting is K in decimal number. Data register D can be also used as

    settings.

    The real setting time of timer = unit of timer * settings

    There are three types divided by these characteristics as follows.

    1. General timer:

    ES/EP/SA Series

    Models:

    General timer will count once when executing command END. Output coil will be On if

    timer attains when executing command TMR.

    EH Series Models :General timer will count once when executing command TMR. Output coil will be On if

    timer attains when executing command TMR.

    T0

    Y0

    X0

    TMR T0 K100

    X0

    T0

    Y0

    K100

    10 sec

    presentvalue

    When X0=On, timer T0 is counted up with

    100ms. The output coil T0=On, when the present

    value of timer equals to setting (K100).

    When X0=Off or power off, timer T0 will be

    cleared to 0 and output coil T0 will be OFF.

    2. Accumulative timer:

  • 7/29/2019 Dvp Ss Manual

    40/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-15

    ES/EP Series Models :General timer will count once when executing command END. Output coil will be On iftimer attains when executing command TMR.

    EH Series Models :General timer will count once when executing command TMR. Output coil will be On iftimer attains when executing command TMR.

    T250

    Y0

    X0

    TMR T250 K100

    X0

    T2

    Y0

    K100

    T1+T2=10sec

    T250

    T1

    presentvalue

    When X0=On, timer T250 is counted up with100ms. The output coil T0=On, when the present

    value of timer equals to settings (K100).If X0=Off or power off during counting, timer

    T250 pauses and keep on counting after X0=On. Thepresent value counts up till the present value of timerequals to settings (K100), output coil T0=On.

    3. Timer for subroutine

    If timer is used in subroutine or have interrupt in subroutine, use timer T192~T194 for it.

    ES/EP Series Models :General timer will count once when executing command END. Output coil will be On if

    timer attains when executing command TMR.

    EH Series Models :General timer will count once when executing command TMR. Output coil will be On if

    timer attains when executing command TMR.

    If general timer is used in subroutine or interrupt to insert in subroutine and the subroutine wont be executed,

    timer cant count correctly.

    Designate method of settings: actual setting time of timer = unit * settings.

    1. Designate constant K: Settings designates constant K directly

    2. Designate indirectly D: Settings use data register D to be indirect designation

    The detail of timer:

    Beside timer used for subroutine, the flow chart of general timer is in the following:

    T0

    Y0

    X0

    T0 K100TMR

    input reflash

    When X0=On,it starts to count.

    1st scan 2nd scan Nth scan (N+1)th scan

    contact Y0=On

    contact T0 is OnT0 counts to10sec now,but contactisnt On.

    Timer will start when executing TMR command.If scan time is longer, same scan will count withplural timing pulse automatically.

    From action above, the action since the coil is started to be ON in detail are in the following:

    +T0T

    -

    : 1ms timer is 0.001 second, 10ms timer is 0.01 second, 100ms timer is 0.1 second

    T : Setting time of timer (second)

    T0 : Scan time (second)

  • 7/29/2019 Dvp Ss Manual

    41/458

    2 DVP-PLC Function

    DVP-PLC Application Manual2-16

    If contact is wrote prior to TMR command in program, it needs to add 2*T0 (two times scan time) in the worst

    situation.

    If timer setting is 0, output contact will be ON when TMR command is executed in the next time.

    2.7 The Numbering and Function of Counter [C]

    The numbering of counter (by decimal number):

    ES, EX, SS model:

    16 bits count up forgeneral

    C0~C111, 112 pointsCounter C

    16 bits count up forlatched

    C112~C127, 16 points. it is always latched area

    1-phase inputC235~C238, C241, C242, C244, 7 points. It is alwayslatched area

    1-phase 2 inputs C246, C247, C249, 3 points. It is always latched area32 bits count up/downHigh speed counters C

    2-phase inputs C251, C252, C254, 3 points. It is always latched area

    Total is141

    points

    EP/SA models:

    16 bits count up forgeneral

    C0~C95, 96 points. It is fixed to be non-latched area.

    16 bits count up forlatched

    C96~C199, 104 points. It can be non-latched area by settingparameters.

    32 bits countup/down forgeneral

    C200~C215, 15 points. It is fixed to be non-latched area.Counter C

    32 bits countup/down forlatched

    C216~C234, 19 points. It can be changed to be non-latchedarea by setting parameters.

    1-phase input forlatched

    C235~C242, C244, 9 points. It can be changed to benon-latched area by setting parameters.

    1-phase 2 inputsfor latched

    C246, C247, C249, 3 points. It can be changed to benon-latched area by setting parameters.

    32 bits count up/downHigh speed counters C

    2-phase 2 inputsfor latched

    C251, C252, C254, 3 points. It can be changed to benon-latched area by setting parameters.

    Total is250

    points

    EH models:

    16-bit count up forgeneral

    C0~C99, 100 points. It can be changed to be latched areaby parameters.

    16-bit count up forlatched

    C100~C199, 100 points. It can be changed to benon-latched area by parameters.

    32-bit count up/downfor general

    C200~C219, 20 points. It can be changed to be latched areaby parameters.

    Counter C

    32-bit count up/downfor latched

    C220~C234, 15 points. It can be changed to be non-latchedarea by parameters.

    Software 1-phase 1input

    C235~C240, 6 points. It can be changed to be non-latchedarea by parameters.

    Hardware 1-phase 1input

    C241~C244, 4 points. It can be changed to be non-latchedarea by parameters.

    Hardware 1-phase 2inputs

    C246~C249, 4 points. It can be changed to be non-latchedarea by parameters.

    32 bits count up/downHigh-speed counters C

    Hardware 1-phase 2inputs

    C251~C254, 4 points. It can be changed to be non-latchedarea by parameters.

    Total is253

    points

    Features:

  • 7/29/2019 Dvp Ss Manual

    42/458

    2 DVP-PLC Function

    DVP-PLC Application Manual 2-17

    Item 16 bits counters 32 bits counters

    Type General General High speed

    Countdirection

    Count up Count up/down

    Settings 0~32,767 -2,147,483,648~+2,147,483,647

    Designate for

    constant

    Constant K or data register D Constant K or data register D (2 for designated)

    Presentvalue change

    Counter will stop when attainingsettings

    Counter will keep on counting when attaining settings

    Outputcontact

    When count attains settings,contact will be ON and latched.

    When count up attains settings, contact will be ON and latched.When count down attains settings, contact will reset to OFF.

    Reset action The present value will reset to 0 when RST command is executed and contact will reset to OFF.

    Presentregister

    16 bits 32 bits

    Contactaction

    After scanning, act together. After scanning, acttogether.

    Act immediately when count attains. Ithas no relation with scan period.

    Functions:

    When pulse input signal of counter is from OFF to ON, the present value of counter equals to settings and output

    coil is ON. Settings are decimal system and data register D can also be used as settings.

    16-bit counters C0~C199:

    1. Setting range of 16-bit counter is K0~K32,767. (K0 is the same as K1. output contact will be ON

    immediately at the first count.

    2. General counter will be clear when PLC is power loss. If counter is latched, it will remember the value

    before power loss and keep on counting when power on after power lo