Search

Delta Industrial Automation

Tips & Tricks

Category

Programable Logic Controllers (PLC)

DVP-S2, DVP-E2, AH500, AS300

Delta PLC data latched information

Delta PLC has a lot of different series and type.

In order to more clarify regarding the battery,  real-time calendar, program and latched register , we sort it out as below.

Program, real time calendar, regsiter_201603

You can know each data latched period information in this pdf file.

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

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: Metal bar feeder

Another successful application, and this time comes from the company Thelen Tech from Finland.

This company engineer is a big an of Delta and our step and direction solutions, and for this simple but effective solution they use 750W ASDA-B2 drive for the motion together with DVP28SV2 for the control.
And to monitor or configure speed, they add DOPB04 HMI.

Check the machine!
20130424_113924

Originally this was planned as full automatic system, plan was there is gripper
which would push material to cutting length, then saw it, then push more… and
whole it should be fast (over 30m/min speed)

20130424_113907

The cutting length can be adjusted using manually using hand-wheel, or automatic using HMI.
There is also possibility for closed loop feed back, but in these case feedback is taken from D1336 register

20130424_114203

Also +/-10V speed command is possible, motion control just calculates difference between real and wanted position and turns it PWM (or voltage).
This pretty nice arrangement for relative (like MPG) and absolute positioning using at the same time.

ParamOffset and accuracy Adjustment Screen

Diagnostics
Diagnostics Screen, very useful for the designer.

Openscreen
Monitoring screen

Thank you very much Thelen Tech to share this new machine with us!
Keep impressing us like that!

PLC RS232/RS485 send frames

This trick is for the very special application when we want to communicate with unknown device trough serial communication using our Delta PLC.

If the slave is Delta, we can always use PLC Link.
But what happens when the slave is not delta?

In this case we have 2 options.
First use our DVP12SCM-SL module with 2 extension ports to help us on the frame configuration.
Second the solution we’ll show in this post.
Basically all our PLC have by default 2 communication ports RS485 (below) and RS232 (in front).
And some have a 3rd RS485 port, usable also to send single frames to other slaves.

111111
COM1 – RED
COM2 – GREEN
COM3 – BLUE

Once you got the port selected, then you need to set up the port configuration.
Use the below table, or our WPLSoft wizard if you are still WPLSoft users.

untitled

On our examples below we used D1036=87H what means:
– Data Lenght 8
– Parity Even
– Stop Bits 1Bit
– Baudrate 9600 bps

Use this table to create the Hexadecimal number, or use WPLSoft wizard
untitled1

Before COM port configuation, we´ll going to use RS instruction.

untitled23

Basically RS instruction is to configure where I’m going to save the data to be sent and received.
But to trigger the frame, you will need to trigger special mark.

COM1:M1312
COM2 M1122
COM3 M1316

Once this mark is high, the PLC send the frame configurated in the RS instruction.
If on the other way around, our PLC is waiting for some transmision, then we´ll need to wait until the data is recieved.
The mark that will tell us when the data is available is:

COM1:M1313
COM2 M1124
COM3 M1317

And you will find the info on D1070 – D1085 special registers range.

To help you on this special application, download the following Send Frame trough RS232 and Send Frame trough RS485.
We also add some section of the manual with the special marks to be aware when you play with this instruction.

Send Frame Help

Recomendation!
When you work with comunications, is always advised to have some sniffer, to see what happens on the network. In RS485 case, I recommend to have IFD6500 and any freeware Modbus sniffer.
And remeber, with comunications…always patience.
Good luck.

Announcement: DVPSCM52-SL (Bacnet)

Did you already test our DVPSCM12-SL?
If not, I don’t know what are you waiting for!

The DVPSCM12-SL is the magic device that allows you to communicate with any RS485 based device.
And we’re no talking only about PLC’s or HMI’s… We’re talking about inverters, HVAC, Electrical power analayzers or whatever your customer decides that needs data.

You can find plenty of information in our Announcement: New products DVP02LC-SL and DVPSCM12-SL post.

untitled

So according to the success of his product, we decide to do something similar more focus in Building Automation, and we decide to develop a communication module for Bacnet

As you can see in this presentation, our device is able to communicate with the main HVAC brands (Johnson Controls, Honeywell, Siemens, Delta), And we demostrated on the below videos.
BacNet examples


For further information don’thesitate to download the manual of this device on our web site.
DVPSCM52-SL Manual

And let us know your experiences

Blog at WordPress.com.

Up ↑