Search

Delta Industrial Automation

Tips & Tricks

Tag

RS485

Easy control of Delta VFD drives

This week we would like to show you two new function blocks (FB) that we have developed to make even easier to use Delta Industrial Automation products.

Usually we need to control several AC drives from a single Master PLC and Modbus communication is a cheap and helpful way to get it.

In order to reduce programming and commissioning time we have developed two FB:

  • COM2_VFDLINK: Configures the communication parameters (baudrate, number of bits, parity,…) that all the nodes on the network have to share and informs about the communication state of each node.
  • DELTA_VFD: Controls each one of the slaves VFD, we can Start/Stop, Forward/Reverse, frequency command and reset faults. On the other side, the FB informs us about the status of the drive, alarm code, output frequency and output current.

Below you’ll find the FB library ready to be imported in your ISPSoft and a little pdf explaining the I/O of each FB, enjoy it!

VFDLINK FB explanation

VFDLINK FB

VFDLink_example

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.

Blog at WordPress.com.

Up ↑