Search

Delta Industrial Automation

Tips & Tricks

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!

How to connect ASDA-A2 to a PROFINET network

Problem: our ASDA-A2 servo drive is a very good high-end servo drive, except for the fact that it does not support PROFINET until now, and for one of our potential costumers we needed such functionality.

This document explains the solution that we did for such problems.

System structure: the system is basically to control a load with our ASDA-A2-M servo drive, which has CANOpen communication. The controller is a PROFINET Master (e.g. Siemens S7 PLC).

Here we used a gateway, to bridge the connection between PROFINET and CANOpen, the gateway used was IXXAT CME/  PN from HMS.

ASDA-A2 configuration: the servo drive’s parameters were adjusted to the connected motor, and to be controlled by a CANOpen Master, below are the main parameters for such a configuration:

Parameter Value Discerption
P1-01 0x000B Control Mode and Output Direction (CANopen Mode)
P1-44 1000 Electronic Gear Ratio (1st Numerator) (N1)
P1-45 1 Electronic Gear Ratio (Denominator) (M)
P3-00 0x0004 Communication Address Setting
P3-01 0x0403 Transmission Speed (1.0M bits / second)

 

The ASDA-A2-M CANOpen interface supports up to 4 PDOs duplex (transmit and receive), each PDO has a length of 8 bytes.

For an explanation for the commands needed to control the drive from CANOpen, please refer to the document CANopen for ASDA-A2_M_EN_20120921

IXXAT CME/PN gateway: this gateway can be parametrized using its own software (CANopen Configuration Studio for IXXAT CME-PN 2.1). In the software the ESD file for the ASDA-A2 can be loaded, and the values that need to be transferred are selected. The variables selected for this application are as follows:

Index Sub-Index Size (Bits) Parameter name
RPDO1
6040 00 16 Controlword
6081 00 32 Profile velocity
RPDO2
607A 00 32 Target Position
60FF 00 32 Target Velocity
RPDO3
6083 00 32 Profile acceleration
6084 00 32 Profile deceleration
RPDO4
6060 00 8 Modes of operation
6098 00 8 Homing method
607C 00 32 Home offset
TPDO1
6041 00 16 Statusword
6077 00 16 Torque actual value
6078 00 16 Current actual value
TPDO2
6064 00 32 Position actual value
TPDO3
606C 00 32 Velocity actual value
TPDO4
603F 00 16 Error code

 

After the configuration has been made, a compilation is done in the software, and then the GSDML file is exported to be used in the PROFINET master as a device .

full screen is recommended

 

And the last step is to download the configuration to the IXXAT gateway using the USB cable (mini USB port).

PROFINET Master: here in this case a Siemens PLC is used (CPU1516-3 PN), first step in the hardware configuration the GSDML file is loaded, and then the device is inserted in the HW configuration. After inserting the device, it will automatically assign inputs and outputs areas for the mentioned variables, where they can be used later in the PLC program to control the servo drive.

we hope this will be of help to your application.

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 !

Welcome Back

Hi Everybody!

As many of you already seen, we had been really busy the last 2 years.
That’s the reason why this blog remains really quiet.

Why? because we were building up brand new team of engineers to publish and share more technical tips & tricks.

Today I’m glad to introduce our brand new team of experienced engineers from everywhere in the world (Spain, Argentina, Jordan, Taiwan, Romania, Italy…). Our intention is keep publishing tips and tricks on weekly basis since today, so do not hesitate to add you mail on the bottom, and you’ll be warn trough your mail for every new post we release.

Just say that we’re really eager to start this new phase, full of energy and with the same intention as always!
Make your life easy, and save you for a couple of hours of frustration, when the damn machine do not want to start working.

See you online!
Delta Tips&Tricks team

Delta Team

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

 

Temperature controllers: How to Return to Default settings

The ones of you who deal with Delta temperature controllers, sooner or later found on the situation to reset the Temperature controller to default values.

How to do that without using DTCOM?
Please follow the below instructions if you have a DTA or DTB
untitled
In case you have DTD4848 just change the keys [V] & [SET], for [] & [SET].

But what happen with DTC? This device have no buttons.
So If you change the Modus Address, and you do not remember what address you use… you´re in a trouble.

In this case, you have 2 options:
Or you use the LED code of the manual to guess the protocol and address
qqqqqqq

Or just follow the below instructions to take the DTC back to factory defaults:
1. Switch to “RUN, and Power on the device.
untitled1

2. After 5 seconds, the device should show as below picture.
untitled2

3. Switch to Stop and wait until the RUN LED is off
untitled3

4. Switch to RUN and wait for the RUN LED is on again.
untitled4

5. Repeat the steps (3) and (4) three times within 60 seconds, and If everything is OK, all led should switch to ON as below picture.
untitled5

 

This feature is available starting from Firmware v1.5

In case you’re a communication guy, download the attached manual to reset to factory default all Temperature controllers using out software DTCOM.

Default reset by Communication.
DTCOM Software

Please don’thesitate to let us know your Delta Temperature controllers experiences

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!

Blog at WordPress.com.

Up ↑