35
0 QUALITY RELIABILITY EXCELLENCE Application Announcement IABU, DELTA ELECTRONICS, INC Confidential level General Classified Top secret Product DVP PLC ASDA DOP Applicable to DVP ES2&EX2 ASDA-A2 DOP-AS35THTD ECN No. N/A Publication No. FAE-01-P10510-000 Published by Solution Center Publisher Joseph Huang Date of Publication May. 10, 2010 Published to Taiwan sales, Product Manager, DGC, DEU, DPR, DES Purpose DVP ES2/EX2 series PLC Demo kit operation manual Description This manual demonstrates how to use newly added special position commands of DVP ES2/EX2 as well as related flag and register.

Demo Kit Dvp-es2_ex2

Embed Size (px)

Citation preview

  • 0

    QUALITY

    RELIABILITY

    EXCELLENCE

    Application Announcement IABU, DELTA ELECTRONICS, INC

    Confidential level General Classified Top secret Product

    DVP PLC ASDA DOP

    Applicable to DVP ES2&EX2

    ASDA-A2 DOP-AS35THTD ECN No. N/A

    Publication No. FAE-01-P10510-000 Published by Solution Center Publisher Joseph Huang Date of Publication May. 10, 2010

    Published to Taiwan sales, Product Manager, DGC, DEU, DPR, DES

    Purpose

    DVP ES2/EX2 series PLC Demo kit operation manual

    Description

    This manual demonstrates how to use newly added special position commands of DVP ES2/EX2 as

    well as related flag and register.

  • 1

    QUALITY

    RELIABILITY

    EXCELLENCE

    Table of contents

    The included devices of EX2 demo kit.....2

    Short brief of special features of ES2/EX2 PLC......3

    EX2 demo kit wiring.....4

    Parameter setting of ASDA-A2 Servo Drive........4

    Description of Special M & D......5

    HMI program overview.....6

    Introductions of instruction and special functions

    DPLSY....8

    DPLSR..10

    DZRN....14

    DDRVA.15

    DDRVI...16

    DPTPO..19

    DCLLM..20

    DVSPO....................22

    DVSPO+DICF ........24

    Program ...26

  • 2

    QUALITY

    RELIABILITY

    EXCELLENCE

    1. The included devices of EX2 demo kit

    DVP 20EX200T PLC DOP AS35THTD

    ASD-BM-50A (Cable included)

    ASDABPW0003 ASDABEN0003

    DVP-PS01

    ASDA-A2 ECMA-C10602ES

  • 3

    QUALITY

    RELIABILITY

    EXCELLENCE

    2. Short brief of special feature of ES2/EX2 PLC

    16K Steps program capacity.

    All model of ES2/EX2 are with removable terminal blocks.

    Built-in 3 Com Port : 1 RS232, 2 RS485, All com port can act as master or slave independently.

    Maximum I/O point up to: 256 input +16 output points or 256 output +16 input points.

    Built in 8 point high speed input (2 points of100KHz, 6 points of10KHz). EX2 model has built-in12bit resolution 4 channels A/D and 2 channels D/A.

    Built in special position control instruction: DZRN, DPLSR, DDRVI, DCLLM, DVSPO etc.

    Built in 2 special instruction2 for PV tracker: GPS and DSPA.

    Built in ASDA Servo Drive convenient instruction: ASDRW.

    Built in VFD convenient instruction: FWD, REV, STOP, RDST, RSTEF.

    Support password protection function: Subroutine Password and PLC ID.

    Support new programming software: ISPSoft.

    .

  • 4

    QUALITY

    RELIABILITY

    EXCELLENCE

    3. EX2 Demo kit Wiring

    4. Parameter setting of ASDA-A2 Servo Drive

    Parameter Setting Description

    1-00 2 Pulse + Direction

    1-01 0 Pt Mode

    1-44 128 Gear ratio1 (N1) 1-45 1 Gear ratio2 (M) 2-10 1 Servo On

    2-15 0 DI6

    2-16 0 DI7

    2-17 0 DI8

    2-08 10 Return to default setting

  • 5

    QUALITY

    RELIABILITY

    EXCELLENCE

    5. Description of Special M & D

    M/D Symbols Description

    M1029 CH0 (Y0, Y1) pulse output execution completed.

    M1078 Pause Y0 pulse output pause (immediate).

    M1108 Pau-R-D Y0 pulse output pause (ramp down). ON = pause, OFF = resume.

    M1156 M&M Enabling the mask and mark function on I400/I401(X4) corresponding to Y0.

    M1305 Reverse Reverse Y1 pulse output direction in high speed pulse output instructions.

    M1307 N-Limit For ZRN instruction, enable left limit switch (Negative Limit).

    M1347 A-R-Y0 Auto-reset Y0 when high speed pulse output completed.

    M1534 En R-D-T Enable ramp-down time setting on Y0. Has to be used with D1348.

    M1538 Paused Indicating pause status of Y0.

    D1026 Mask Pulse # Pulse number for masking Y0 when M1156 = ON (Low word)

    *D1030 Y0 Pulse Low word of the present value of Y0 pulse output.

    D1232 After Mark P# Output pulse # for ramp-down stop when mark sensor receives signals. (Low word).

    D1244 ITPN Idle time (pulse number) setting of CH0 (Y0, Y1)

    D1340 S/End F Start/End frequency of the 1st group pulse output CH0 (Y0, Y1)

    D1343 Acc/Dec Ramp up/down time of the 1st group pulse output CH0 (Y0, Y1)

    D1348 En R-D-T Ramp up/down time of the 1st group pulse output CH0 (Y0, Y1)

  • 6

    QUALITY

    RELIABILITY

    EXCELLENCE

    6. HMI program overview

  • 7

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 8

    QUALITY

    RELIABILITY

    EXCELLENCE

    7. Introductions of instruction and special functions

    API 57 DPLSY -- Pulse Output

    Operation 1: Sending fixed number of pulses

    Set Pulse = 50000 then press DPLSY. Servo motor will rotate 5 rotations.

    (If Pulse number = Negative, servo motor will rotate with opposite direction)

    Operation 2: Sending continuous pulses

    Set Pulse = 0 then press DPLSY. Y0 will keep sending out pulses.

    Operation 3: Sending pulse (Adjustable speed) Set Pulse = 0 then press DPLSY. When Y0 is sending pulse, input different

    figures in Frequency to change current operating frequency.

    Note: SPD X2 shows current Y0 output frequency (Hz). Y0 output in frequency will have slight errors within 0.134%. This result is in the acceptable range of errors.

    Frequency

    Pulses, Number of

    Output device Sign (Reverse signal)

    Execution completed

    Commonly used special M

    Current speed (Hz) Present value of Y0

  • 9

    QUALITY

    RELIABILITY

    EXCELLENCE

    Operation with common used special M

    M1029: Flag on when pulse output is completed.

    M1078: Press DPLSY to trigger servo. Press M1078 to pause Y0 pulse output immediately. When M1078 is on, M1538 flag will on to indicate current status.

    M1305: Press M1305 then press DPLSY. The rotation of motor will be on opposite side.

    M1347: 1st set Pulses = 1000 then press DPLSY. When finished sending, press DPLSY to release. (Repeat this step to see its movement) 2nd press M1347 then press DPLSY with same setting above. (Compare these two steps you will see the difference.)

    *D1030: Present value of Y0 pulse output. D1030s value can be cleaned only when conditional contact is disabled such as M0 DPLSY, M1 DPLSR. This applies to all examples using D1030 in this demo program.

  • 10

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 157 DPLSR -- Pulse Ramp

    Operation 1: Sending fixed number of pulses with same Acc/Dec time.

    Set Pulse = 20000, then press DPLSR. Servo motor will rotate 2 rotations with fixed Acc/Dec 200ms. (If Pulse number = Negative, servo motor will rotate with opposite direction)

    Operation 2: Sending fixed number of pulses with different Acc/Dec time.

    Set Pulse = 100000, D1348 = 2000, enable M1534 and then press DPLSR. Servo motor will start rotating with acceleration time 200ms then stop its rotation with deceleration time 2000ms.

    Operation with common used special M (For other special M, please refer to page 8) M1108: Set enough pulse first then press DPLSR to trigger servo. Press M1108, servo

    motor will ramp down with pre-set acceleration time till stop.

    Frequency Pulses, Number of Acc/Dec time

    Mask & Mark function

    I401 & Y5 manual interrupt Enable ramp down time

    Ramp down time setting

    Pause with ramp down

  • 11

    QUALITY

    RELIABILITY

    EXCELLENCE

    Mask & Mark: ES2/EX2 series PLC has ability to do mask and mark function. This demo kit does not connect to authentic mark sensor. Thus, the entire examples of Mask & Mark function will adopt virtual mark sensor to fulfill its movement.

    Input area of Mask & Mark function (same with DDRVI)

    Operation 3: Mark function testing (Only triggered by I401 E: Manual Mark Sensor) 1: Set I401 DHSCS Int D a very big constant such as 5000000. 2: Enable M1156 F for mark function. 3: Press DPLSR to start running servo motor. 4: Press I401 E to send Mark signal to stop servo motor. (Flag M1108 and M1538 will be lit on) 5: Release M1108 to restore rotation of servo motor. 6: Repeating 4 & 5, the result and its movement will be the same with real mark sensor.

    Operation 4: Mark function testing (Only triggered by DHSCS D: Virtual Mark Sensor) 1: Set I401 DHSCS Int D = 30000. 2: Enable M1156 F for mark function. 3: Press DPLSR to start running servo motor. 4: Servo motor will rotate 3 rotation and stop. The measurement of Y0 will be around 34753**. 5: Release DPLSR to stop this command. (Flag M1538 will be turned off) 6: To resume previous movement, firstly make sure DPLSR is released then release M1108 and

    finally press DPLSR to repeat its movement.

    Virtual Mark

    Sensor

    Manual Mark

    Sensor

    Send out number of pulses after receive Mark Sensor signal.

    Measurement of Y0 pulse output Value can be cleaned only when DPLSR is released

    I401 Signal

    Number of pulses which is

    masked (To blind Mark

    Sensor)

    Enable M&M

    Function

  • 12

    QUALITY

    RELIABILITY

    EXCELLENCE

    Note: When using authentic mark sensor, steps 5 to release DPLSR wont be necessary. Only release M1108 can resume its previous movement. The Virtual Mark Sensor is using DHSCS command to trigger interrupt. Thus, for repeating M&M function, steps 5 & 6 will still be necessary.

    Operation 5: Mark function with Mask setting (Set D1026) 1: Set I401 DHSCS Int D a very big constant such as 500000. 2: Set D1026 C = 100000. 3: Enable M1156 F for mark function. 4: Press DPLSR to start running servo motor. 5: Press I401 E to try to interrupt pulse command. (Press & release continually till interrupt occur) (See the measurement of D1030.The interrupt will occur only when pulses are over 100000.) 6: Release DPLSR to stop this command. (Flag M1538 will be turned off) 7: To resume previous movement, firstly make sure DPLSR is released then release M1108 and

    finally press DPLSR to repeat its movement.

    Operation 6: Mark function with extra pulses sending after received mark signal (Set D1232) Required final pulses, position or moving length of motor = 35000 (Refer to D1030) 1: Set I401 DHSCS Int D to desired pulse such as 30000. (Position of mark) 2: Set D1232 B =5000. (Mask function is also available to use in this example. Set D1026) 3: Enable M1156 F for mark function. 4: Press DPLSR to start running servo motor. 5: Observe D1030. The final measurement will be 35002**

    Final pulse = 35002. Its not the exact pulses we require. Adjustment is needed at this time. 6: Simply lower the D1232B by 2 pulses to 4998. 7: Release DPLSR to stop this command. (Flag M1538 will be turned off) 8: Release M1108 then press DPLSR to repeat the movement again. The final measurement will

    be 35000

  • 13

    QUALITY

    RELIABILITY

    EXCELLENCE

    I llustration of Mask & Mark function

    The minimum pulses are required for D1232 when Mark function is enable (M1156)

    Dec time Pulses Dec time Pulses Dec time Pulses Dec time Pulses

    20ms 473 70ms 1660 120ms 2853 170ms 4039

    30ms 708 80ms 1903 130ms 3087 180ms 4277

    40ms 953 90ms 2135 140ms 3326 190ms 4515

    50ms 1183 100ms 2373 150ms 3564 200ms 4753

    60ms 1423 110ms 2611 160ms 3803

    Only enable Mark function

    Enable Mask & Mark function

  • 14

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 156 DZRN Zero Return

    Operation 1: Normal ZRN mode

    Press JOG+ about 1 sec to let motor move a little bit (Observe D1030= +3xxxx) Press ZRN to start Zero Return (D1030 should be counted down toward 0) Long press DOG to let the movement go Creep speed (Jog speed of ZRN) Release DOG and motor will be stopped. (Zero point D1030 = 0)

    Operation 2: ZRN with Negative Limit mode

    Press M1307 to enable Negative Limit

    Press JOG- about 1 sec to let motor move a little bit (Observe D1030= -3xxxx) Press ZRN to start Zero Return (D1030 should be counted up with negative sign) Press Limit to let motor reverse rotation (D1030s values will gradually close to 0) Long press DOG to let the movement go Creep speed (Jog speed of ZRN) Release DOG and motor will be stopped. (Zero point D1030 = 0)

    Target frequency Creep speed

    JOG function by PLSV PLSV frequency Negative Limit Enable negative Limit Virtual DOG

  • 15

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 159 DDRVA Absolute Position Control

    Operation 1: Move to Absolute position (Make sure D1030 = 0, If not, execute DZRN first.) Press Disable Position 2 first then press DDRVA to trigger motor run.

    When it stops, the final position will be at 30000. Release DDRVA and press again. The servo motor wont be triggered to run again.

    Operation 2: Move to Absolute position with different Acc/Dec time. (Disable Position2) Set Position 1 = - 100000 with frequency 100K, Acc/Dec = 2000.

    Press M 1534 with D1348 = 20 then press DDRVI to trigger motor run. Motor will start to run with Acc 2000ms (speed up) and stop with Dec 20ms (Slow down)

    Note: The Position 2 with Disable function is not the part of DDRVA command. It is just made for user to move away current position (position 1) for observation its traits. The pause functions M1108, M1078 are the same with DPLSY DPLSR, for more information please refer to page 8&9.

    Position 1/ Pulses, Number of

    Enable ramp down time Ramp down time setting Pause with ramp down

    Frequency of Position 1 Acceleration/Deceleration time Disable position 2

  • 16

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 158 DDRVI Relative Position Control

    Input area of Mask & Mark function (same with DPLSR)

    Note: The functions of DDRVI are almost the same with DPLSR. Only operands of Position and Frequency are different from DPLSR. Thus, setting of its functions will be almost the same with DPLSR.

    Position (pulses) Frequency Acc/Dec time D1343

    Mask & Mark function

    I401 & Y5 manual interrupt Enable ramp down time Ramp down time setting

    Pause with ramp down

    Virtual Mark

    Sensor

    Manual Mark

    Sensor

    Send out number of pulses after receive Mark Sensor signal.

    Measurement of Y0 pulse output Value can be cleaned only when DDRVI is released

    I401 Signal

    Number of pulses which is

    masked (To blind Mark

    Sensor)

    Enable M&M

    Function

  • 17

    QUALITY

    RELIABILITY

    EXCELLENCE

    Operation 1: Rotate servo motor to desired position with same Acc/Dec time.

    Set Pulse = 50000; Frequency = 50000; Acc/Dec = 100 then press DDRVI. Servo motor will rotate 5 rotations with fixed Acc/Dec 100ms. (If Pulse number = Negative, servo motor will rotate with opposite direction)

    Operation 2: Rotate servo motor to desired position with Different Acc/Dec time.

    Set Pulse = 100000; Frequency = 70000; Acc/Dec = 100; D1348 = 2000, enable M1534 and then press DDRVI. Servo motor will start rotating with acceleration time 100ms then stop its rotation with deceleration time 2000ms.

    Mask&Mark:

    Operation 3: Mark function testing (Only triggered by I401 E: Manual Mark Sensor) 1: Set I401 DHSCS Int D a very big constant such as 5000000. 2: Enable M1156 F for mark function. 3: Press DDRVI to start running servo motor. 4: Press I401 E to send Mark signal to stop servo motor. (Flag M1108 and M1538 will be lit on) 5: Release M1108 to restore rotation of servo motor. 6: Repeating 4 & 5, the result and its movement will be the same with real mark sensor.

    Operation 4: Mark function testing (Only triggered by DHSCS D: Virtual Mark Sensor) 1: Set I401 DHSCS Int D = 30000. 2: Enable M1156 F for mark function. 3: Press DDRVI to start running servo motor. 4: Servo motor will rotate 3 rotation and stop. The measurement of Y0 will be around 32373**. 5: Release DDRVI to stop this command. (Flag M1538 will be turned off) 6: To resume previous movement, firstly make sure DDRVI is released then release M1108 and

    finally press DDRVI to repeat its movement.

    Note: When using authentic mark sensor, steps 5 to release DDRVI wont be necessary. Only release M1108 can resume its previous movement. The Virtual Mark Sensor is using DHSCS command to trigger interrupt. Thus, for repeating M&M function, steps 5 & 6 will still be necessary.

  • 18

    QUALITY

    RELIABILITY

    EXCELLENCE

    Operation 5: Mark function with Mask setting (Set D1026) 1: Set I401 DHSCS Int D a very big constant such as 500000. 2: Set D1026 C = 100000. 3: Enable M1156 F for mark function. 4: Press DDRVI to start running servo motor. 5: Press I401 E to try to interrupt pulse command. (Press & release continually till interrupt occur) (See the measurement of D1030.The interrupt will occur only when pulses are over 100000.) 6: Release DDRVI to stop this command. (Flag M1538 will be turned off) 7: To resume previous movement, firstly make sure DDRVI is released then release M1108 and

    finally press DDRVI to repeat its movement.

    Operation 6: Mark function with extra pulses sending after received mark signal (Set D1232) Required final pulses, position or moving length of motor = 50000 (Refer to D1030) 1: Set I401 DHSCS Int D to desired pulse such as 30000. (Position of mark) 2: Set D1232 B =20000. (Mask function is also available to use in this example. Set D1026) 3: Enable M1156 F for mark function. 4: Press DDRVI to start running servo motor. 5: Observe D1030. The final measurement will be 50002**

    Final pulse = 50002. Its not the exact pulses we require. Adjustment is needed at this time. 6: Simply lower the D1232B by 2 pulses to19998. (Clean D1030 for next measurement) 7: Release DDRVI to stop this command. (Flag M1538 will be turned off) 8: Release M1108 then press DDRVI to repeat the movement again. The final measurement will be

    50000.

    Operation with commonly used special M, please refer to section of DPLSY & DPLSR

  • 19

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 195 DPTPO Single-Axis Pulse Output By Table

    Operation1: Multi-section pulse output

    Fill 5 sections of frequency in Freq 1-5 and fill 5 sections of pulses in Pulse1-5

    Examples:

    Freq 1-5 Pulse 1-5

    10000 50000

    20000 60000

    30000 70000

    40000 80000

    50000 90000

    Freq 1-5 Pulse 1-5

    100000 50000

    20000 10000

    70000 50000

    2000 2000

    90000 30000

    Frequency setting Pulse setting Same with SPD X2

    Section indicator

    Output device

    Sign (Reverse signal)

  • 20

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 197 DCLLM Close Loop Position Control

    Input area of Mask & Mark function

    Target number of feedbacks Target frequency

    Feedback source device

    Mask & Mark function

    Idle time pulses Enable Mark function

    Starting/Ending frequency

    Virtual Mark Sensor

    Measurement of Y0 pulse output Value can be cleaned only when DCLLM is released

    Number of pulses which is masked

    (To blind Mark Sensor)

    Manual Mark

    Sensor

    Enable M&M

    Function

    I401 Signal

    Idle Speed setting Send out # of pulses

    with idle speed

  • 21

    QUALITY

    RELIABILITY

    EXCELLENCE

    Operation 1: DCLLM movement with target number of pulses and target frequency

    Set target number of pulse = 30000; target frequency = 100000; then press DCLLM. Servo motor will rotate 3 rotations with 100khz then enter into a 100Hz slow movement (idle speed) for waiting interrupt signal. After pressing I401, the whole process will stop. (Together with M1347, It can resume its movement again. If M1156 is enabled, M1347 function will be of no use)

    Operation 2: DCLLM movement with idle time pulse number setting

    Set target number of pulse = 80000; target frequency = 50000; D1244 E= 500, then press DCLLM. Servo motor will rotate 8 rotations with 50khz then enter into a 100Hz slow movement for additional 1000 pulse (idle speed). D1030 will show 80499. (Together with setting of D1340 D, it can adjust idle speed.)

    Mask&Mark:

    Operation 3: DCLLM movement with fixed pulse (to stop at fixed length by reaching interrupt) 1: Set target number of pulse a very big constant such as 100000; Target frequency = 50000 2: Set the I401 DHSCS Int C = 70000 (Total length) 3: Enable M1156 G for Mark and Mask function. 4: Press DCLLM to start running servo motor. 5: When reaching 70000, Servo will stop rotating immediately. (D1030 will show 70001 or 70002, it is to say this movement does not enter into idle zone)

    Operation 4: DCLLM with Virtual Sensor.

    1: Set target number of pulse = 70000 ; Target frequency = 70000. 2: Set the I401 DHSCS Int C = 70500 (Total length) 3: Enable M1156 G for Mark and Mask function. 4: Press DCLLM to start running servo motor. 5: When reaching 70500, Servo will stop rotating. (D1030 will show 70500. The DCLLM movement is

    complete and stop at idle time zone after receiving Virtual Mark Sensor signal )

  • 22

    QUALITY

    RELIABILITY

    EXCELLENCE

    Operation 5: DCLLM with Virtual Sensor and Mask pulse setting.

    1: Set target number of pulse = 100000; Target frequency = 40000. 2: Set the I401 DHSCS Int C = 101000 (Total length) with D1340 D = 2000 3: Set D1026 B = 90000. (Pulse can only be set before its end of ramp down time) 4: Enable M1156 G for Mark and Mask function. 5: Press DCLLM to start running servo motor. (When running, continuously press I401 F within

    pulses 90000, the movement will not stop. This step is to simulate that there are many marks or patterns on object so as to create false signals for Mark & Mask function.)

    6: When reaching 101000, Servo will stop rotating. (Otherwise if press I401 F after pulses # 90000, then the movement will be stop immediately)

    I llustration of Mask & Mark function

  • 23

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 197 DVSPO Variable Speed Pulse Output

    Operation

    Press DVSPO to start running then change target frequency to desired speed such as 50000 or 100000 to see its difference. By changing gap frequency and gap time, then change target frequency, pulse output frequency and slope can be adjusted.

    Target frequency Target pulse

    Gap frequency

    Gap time

  • 24

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 25

    QUALITY

    RELIABILITY

    EXCELLENCE

    API 199 DICF Immediately change frequency

    Operation

    Press DVSPO/DICF to start running with default gap frequency and gap time then change to different gap frequency; gap time and frequency in red rectangular area. Finally press I601 to enable new setting.

    Function Explanations: 1. If the target frequency is changed by using DVSPO instruction, the actual changing timing

    will be delayed due to the program scan time and the gap time as below.

    Target frequency Target pulse

    Gap frequency

    Gap time

    DICF

  • 26

    QUALITY

    RELIABILITY

    EXCELLENCE

    2. If frequency is changed by applying DICF instruction in interrupt subroutines, the actual changing timing will be executed immediately with only an approx. 10us delay (execution time of DICF instruction). The timing diagram is as below:

  • 27

    QUALITY

    RELIABILITY

    EXCELLENCE

    8. Program

  • 28

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 29

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 30

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 31

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 32

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 33

    QUALITY

    RELIABILITY

    EXCELLENCE

  • 34

    QUALITY

    RELIABILITY

    EXCELLENCE