Search

Delta Industrial Automation

Tips & Tricks

Tag

Delta PLC

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 LINK: 32 slaves and R/W 100words

Probably some of you already know the PLC Link feature of our DVP series PLCs, it allows us to easily exchange data between the master PLC and several slaves saving a lot of programming time.

Slaves can be PLC, drives, temperature controller and, in general, any equipment that includes and RS485 Modbus port.

For those who don’t know this feature here you can find other posts in this blog with detailed information:

 

Exchange between Master PLC and Slave drive (VFD):

https://deltautomation.wordpress.com/2011/08/05/plc-link-plc-to-vfd/

PLC-VFD

Exchange between Master PLC and Slave PLC:

https://deltautomation.wordpress.com/2011/07/21/plc-link-plc-to-plc/

PLC-PLC

Exchange between Master PLC and Slave temperature controller:

https://deltautomation.wordpress.com/2013/01/04/plc-link-plc-to-temperature-controllers/

PLC-DT

In general, the PLC Link feature is limited to:

  • 16 slaves.
  • Read up to 50 words (16 bits variable) from each slave.
  • Write up to 50 words (16 bits variable) to each slave.

Today I would like to show you how our PLC DVP12SE (Link) is able to overcome this limitations and increase the number of slaves and the number of data to be exchanged.

Using the DVP12SE PLC (fw versions 1.6 and above) you will be able to:

  • Communicate with up to 32 slaves.
  • Read up to 100 words (16 bits variable) from each slave.
  • Write up to 100 words (16 bits variable) to each slave.

 

Let’s take as an example an application where we want to communicate with first slave (ID1) and a second one over the 16 standard slaves, the 20th (ID20) for instance, at the end of this post you’ll find the example programs to be downloaded on the Master and in the two slaves.

 

First of all, we have to be sure that the communication parameters are the same on all the nodes connected to the Modbus (ASCII/RTU, baudrate, data bits, parity,stop bits) and also that all have a different node number.

MST-1

Two internal bits are very important in order to start the PLC Link functionality, M1350 and M1351:

MST-2

Also we have to indicate to our PLC that we want to access to more than 16 slaves and that we want to read/write more than 50 words on each slave:

MST-3

Next step is to assign to each slave (ID1 to ID32) his configured node number into the Modbus (in this case we have configured ID1 with node 1 and ID20 with node 20):

MST-4

In order to configure the PLC Link there’s no need to program complex polling structures nor keeping into account communication timeouts or errors in order to resend Modbus messages, you only need to fill a few special registers with the right values in order to indicate to the PLC which nodes you want to communicate and which registers of these slaves nodes you want to read/write.

In this example we will:

  • Master PLC reads D0~D49 (50 words) on PLC ID1 and stores the data on D100~D149 of his internal memory.

MST-5

  • Master PLC reads D0~D49 (50 words) on PLC ID20 and stores the data on D150~D199 of his internal memory.

    MST-6

  • Master PLC writes the values of his D200~D249 (50 words) on registers D100~D149 of the PLC ID1.

MST-7

  • Master PLC writes the values of his D200~D249 (50 words) on registers D100~D149 of the PLC ID20.

MST-8

  • Increments D200 and D249 (these values will be wrote on ID1 and ID20).

MST-9

On the slave’s side, we only have to configure the communication (ASCII/RTU, baudrate, data bits, parity, stop bits) and a different node number to each slave.

 

  • NODE 1:

SLV-1

  • NODE 20:

SLV-2

 

Here you have the programs of the Master PLC and both Slaves and also a pdf where you can find which registers you have to configure in order to read/write each one of the 32 Slaves.

PLC LINK 32 slaves

PLC Software

 

Now you have seen all the required steps to configure a powerful data exchange between a Master PLC and up to 32 Modbus slaves with just a few program code lines, enjoy it!

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

 

PLC Password: How to protect your program?

How to protect you program?

I’m pretty sure, that If you´re a programmer is not the first time you need to protect your work.
Maybe to avoid last time changes, or maybe because is your everyday bread.
So in any of the cases, we would like to explain what password locking possibilities new ISPSoft provide to you.

1st Program Lock
In this case, you lock the computer file, to open the file you need to have the pasword, but If the program in on the PLC customer can upload without password.


full screen is recommended

2nd Subroutine Lock
Your customer can open the program with no problem, but you can lock your Function Blocks to avoid anybody steal your Know-how.


full screen is recommended

3rd PLC Lock
In this case you’re locking the PLC, to be able to upload the program from the PLC you need the password.
The password resets if you come back to factory settings, but be aware that you´re going to lose the program also!


full screen is recommended

To all of you, who have a machine in you hands with a Password, and need to extract the program for whatever reason is. I’m afraid there´s no crack or universal password.
The only think you can do is contact with your machine provider.
Or just reset to factory settings, loosing the program on the process

Successful Application: Top cleaner greenhouse deck

Another successful application from our parters in Netherlands Innomotion.

On below video new top cleaner unit for cleaning the glass roofs of greenhouses, and since last year fully equipped with delta inverters

http://www.dailymotion.com/video/xpbwg1_van-der-waay-machinebouw-top-cleaner-greenhouse-deck-cleaner-village-farms_tech

For the cleaning brushes they use VFD-L, And to drive the car over the roof our VFD-E.
And finally to control all the sequence a simple SS2 makes all the job.

Congratulations Innomotion!

Announcement: Delta Smart Viewer

New software available on the Delta web page, and as always for free!

Delta Smart viewer is the new tool to allows us to check our PLC status using Android device, like for example our Smart phone or tablet.

TargetSetting_phone

On this recent version is only supported wifi communication, but is planned in near future to support 3G communication, being able to monitor and control our installations using our smart devices.
Up to 10 devices can be supported with the actual version.

TargetSetting

Able to monitor temperature or any other graphic value using run-chart, with a top samples number of 5000.

untitled1

Furthermore, the export/import profile, makes it easy to configure other devices with same connection.

untitled

So If you have Android in your smart phone, feel free to download it from our website!
Delta Smart Viewer v1.01
In case you´re iOS user, am afraid you will need to wait
(and for windows mobile… we’ll see ;)

Warning
Delta Smart VIEWer 1.01 supports Android 2.2 ~ Android 4.2
Before downloading the software, please find and tap Settings > Security on your Android home screen and mark the Unknown sources checkbox to allow the installation of applications not from Google Play™

Successful Application: 11 Axis Cutting / profiling machine

Another successful application from our Netherlands distributor Innomotion.

This time is a Woodcutting / Profiling machine with 11 axis control!

Kast

As you can see on the picture our partners use 7 VFD-E drives for transportation and high speed spindle, and 4 servodrives ASDA-A2 400W for the cutting/profiling.
Everything controlled by central CPU with Master CANopen module (DVPCOPM-SL).

stootborden1

Via the PC Cad drawings are imported to the Machine and machine settings are executed. The PLC is controlling all the I/O and servo’s for the motion.
In this machine the wooden boards for the stairs are cut to length , width and angle on front and end of the board. The PC software is written in Labview.

freesdraaien.

I hope you like it!
And with some luck, you can use it as inspiration for your next project!

Succesful Application: Electric Concrete Truck

This is a new application for our Netherlands distributor Innomotion.
The idea is to make a concrete truck more economic and silent.

Normally the drum is turned with diesel power (hydraulics) from the truck.
Now the drum is loaded at the factory on electric power (cable) and on the road a small generator is supplying just enough power for slow turning and unloading of the truck.

It will save fuel but most of all were possible the truck can unload on the cable so in the innercities there is less pollution on the building site and less noise.

Inside the big cabinet there is a C2000 45KW delta PLC and HMI.
Nice eco-project Innomotion!
Dank u wel

Blog at WordPress.com.

Up ↑