Search

Delta Industrial Automation

Tips & Tricks

Author

Alejandro Dova

Product Manager - Industrial Automation BG Delta Electronics - EMEA Region

Download/Upload PLC program directly from/to USB through HMI

When users don’t have easy access to a laptop nor PC nearby the installation or the machine, is difficult to face the task of making some modification or backups by downloading/uploading the PLC program.

For this purpose, there’s a way to download/upload the PLC program directly from/to a USB memory stick through the DOP HMI.

Picture 1

Let’s explain the procedure in few steps assuming the case of downloading program from USB to PLC:

1. Copy the PLC program (.DVP) into an USB memory stick

2. Insert the memory stick into the USB port of the HMI

3. Enter the system menu of the HMI by pressing the “SYSTEM” button (at the rear side of the HMI) for few seconds. You will hear a “bip” sound

Picture 2

4. Enter the “Up/Download” sub menu

5. Select “HMI <->PLC” transfer mode by navigating through the  “LEFT” and “RIGHT” buttons at the bottom

Picture 3

6. Click “USB:\” on the left part of the screen and select the PLC program file you want do download

7. On the right part of the screen, select the COM port that is connected to the PLC (COM1 in this example)

Picture 4

8. After selecting COM1, HMI will search PLC automatically

Picture 5

9. Once the PLC is found by the HMI, user can download the program  by pressing “Download” button

Picture 6

Important note: The file name in the PLC to be uploaded or downloaded using this function must be DVP-xxx.dvp (xxx must be a number between 000 and 999.)

 

 

 

 

 

 

 

 

 

 

Communication between Delta HMI and Siemens PLC S7-1200

Many users have faced the challenge to connect our DOP series HMI and Siemens S7-1200 PLC. This tutorial is intended to help all who may have little knowledge either Delta HMI or Siemens PLC in order to make this communication easy to set.

HMI-S71200

By following the below steps, you will find an easy way to connect both devices using Ethernet as a communication media:

Settings on Delta HMI side

1- In DOPSoft menu bar, go to “Options” => “Communication Setting”

Picture 1

2- Click on the Ethernet port and set the following parameters on the “Device” tab

2.1- Create a new connection by means of the “+” button:

Picture 4

Picture 2

2.2- Select “S7 1200 (ISO TCP) protocol from the SIEMENS list

Picture 3

Settings on Siemens S7-1200 PLC side using TIA Portal

1- Inside the PLC program, the “TCON” system function block (SFB) has to be inserted in order to establish the communication with Delta HMI

2- Open the Main Operation Block “OB1” and insert the “TCON” SFB as follows

3- In “Instructions” -> “Extended instructions” -> “Communications” -> “Open user communication”, open the “Others” folder and drag the “TCON” block to the operation block. This automatically generates an instance data block for the “TCON” function that you have to confirm with “OK”

Picture 54- Set the Input and Output parameters of the TCON block. Press F1 when selecting the TCN Block to access online help

Picture 6

5- Inside the properties of the TCON block specify the IP address of the communication partner

Picture 7

6- TIA Portal => PLC Properties

6.1- Select “General” => “Protection” => “Permit access with PUT/GET communication from remote partner”

Picture 8Picture 9

7- Enter the “Properties” option of the System Data Block previously generated and disable the “Optimized block access” option

Picture 10

Picture 11

Hope this tutorial is helpful to all of you. Good luck !

 

HMI – PLC Real Time Clock Setting

Real Time Clock Sync

Since real time clock synchronization between HMI and PLC is a normal requirement for most application, we’d like to show you the updating function of real time clock provided by DOPSoft.

You can refer to the below technical document for the complete explanation on how to set real time clock synchronization.

Real Time Clock Setting

And here you can also download the HMI example program:

HMI program example

I hope it will be useful for you all !

Good luck !

PLC – PID auto-tuning function for temperature control

Users may not be familiar with a new temperature environment. In this case,  its advisable to use the PID auto-tuning functionality to improve the PID parameters settings. To do so, selecting auto-tuning (S3+4 = K3) for an initial adjustment is suggested. After initial tuning is completed, the instruction will auto modify control mode to the mode exclusively for adjusted temperature (S3+4 = K4). In this example, the control environment is a heating oven. See the example program below:

Picture 1

Results of initial auto-tuning:

Picture 2Picture 3

Results of using adjusted parameters generated by initial auto-tuning function:

Picture 4

From the figure above, we can see that the temperature control after auto-tuning is working fine and it spent only approximately 20 minutes for the control. Next, we modify the target temperature from 80°C to 100°C and obtain the result below:

Picture 5

From the result above, we can see that when the parameter is 100°C, temperature control works fine and costs only 20 minutes same as that in 80°C.

If you want to test it right away, here is the PLC program ready to download:

PID Autotining PLC program example

We hope this tool is useful for all of you and make your work better. Enjoy it !

DPIDE: Advanced PID algorithm for AH500 PLC

Delta AH500 PLC programming instructions for PID algorithm.

Instruction code: DPIDE (API 0708)

DPIDE Block description

Explanation of the DPIDE instruction:

The PID algorithm is implemented only when the instruction is executed.

PID  stands for Proportional, Integral, Derivative and is widely applied to mechanical, pneumatic and electronic equipment.

For a detailed explanation of DPIDE parameters, please refer to the following file: DPIDE Explanation

Application example:

Before the instruction DPIDE is executed, the setting of the parameters should be complete. When M1 is OFF, the MV is 0, and the MV is stored in D200. When X0.0 is switched OFF, the instruction is not executed, and the previous data is unchanged.

DPIDE Block example

The PID algorithm: When PID_MODE is set to 0 (false), the PID control mode is in automatic control mode.

When PID_MODE is set to 1 (true), the PID control mode is in automatic tuning mode. After the tuning of the parameters is completed, PID_MODE is set to o (false) automatically.

You can download the example program from here

More detailed information about PID:

PID Block Independent

PID Block Dependent

 

Blog at WordPress.com.

Up ↑