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.
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.
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
Before COM port configuation, we´ll going to use RS instruction.
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.
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.
April 23, 2021 at 12:17 am
Hello there,
I would like to build a system which includes PC and SS2 PLC module and i need to send and receive signals on serial port com1 because a custom c# app will run on pc. I tries using RS API but i could not make any connection.
The link for “Send Frame Help” does not work by the way. If its possible would you please send me an example program which i would see the send and receive frames?
Your help would be appreciated.
Thanks.
January 9, 2020 at 4:42 pm
Hi Dear
I want send some registers to PC via RS232 (12SE, COM1) and recieve them on Hyper terminal on PC. but no thing receive on hyperteminal. can you help me or provide a program on delta PLC.
Thank you
October 31, 2018 at 10:51 am
Hi sir,
I want DELTA PLC model which has 4 port with Ethernet port, can u suggest me?
September 15, 2018 at 11:04 am
Hi, I’m new to this
Can anyone Please share the C++ / C# code to read/ Write Memory bits from PC to Delta-PLC through RS-485.
December 5, 2017 at 4:29 pm
Hi,
Do you have a similiar example but for recieving data? I want to send data fomr a PC software to the PLC, but i’m only able to send from PLC to PC software.
thanks
September 15, 2018 at 11:05 am
Can you please share the code data transfer between PLC to PC?
October 12, 2017 at 5:01 am
Dear Friends,
I want to send rotatory encoder output to PC through PLC, can anyone give me a solution??
March 25, 2017 at 3:47 pm
Hi Mr. Jahangir Arain, have you already found a solution to the problem that you posted? Please send me a respose at chreyhoshi@gmail.com
thank you!
September 16, 2016 at 5:55 pm
please help me i want to send data from delta plc 20ex2 to arduino but it is not working.. whein i send data to the computer its work properly… but with arduino its not working properply…please help… its urgent
August 14, 2016 at 9:50 pm
how to connect delta plc dvp sx2 211 with indusoft v 7.5?
August 5, 2016 at 12:07 pm
Hi, plase can you sen me the code to comunicate with a cell, I pretend use com3 in to a dvp-12se
the protocol cell (9600bds, 8, N, 2)
March 16, 2015 at 9:36 pm
Hi, I programmed a PLC to send by RS232, 4 characters $72 $79 $76 $65 which are stored in locations D100, D101,D102, D103 to a PC. I used the command RS D100 K4 D120 K0 to send the string. The PC reads ?HOLA? instead of HOLA, I mean, not ONLY the four characters I wanted to send BUT also characters “?” or $3F at the beginning and at the end of the frame. What can I do to not sending those $3F characters? I would appreciatte a quick response. Thank you so much.
December 12, 2014 at 5:59 am
I have tried to send a the 00 (hex) and 01 (hex) with this RS intruction, the problem is the instruction send 80 (hex) and 81 (hex) instead of 0 and 1. Whatever value I tried to send, the instruction send (sent value = my value + 80 (hex)). please help me to solve it
May 14, 2014 at 3:09 pm
I want to get data from dvp plc ss2 to my pc in rtu/ascii mode. i tried few ways mentioned in manual. any idea/help. ? thanks.
January 15, 2014 at 10:47 am
Hi, The example link doesn’t work any more.
I have tried using your explanation in the text above (With COM1 RS-232), it sends one string successfully and the M1312 resets successfully. But when I try re-trigger the sending again, the sending doesn’t occur and the M1312 does not reset.
Please can you help with this.
Kind regards,
Dino Alves
January 17, 2014 at 9:39 am
The FTP has been fixed just today, sorry for inconveniences.
August 13, 2013 at 8:40 am
Is there an example to communicate to non delta rs232 devices using the rs232 on delta hmi.
December 7, 2015 at 11:03 pm
Hi Mike Please can you send the code sample code to communicate to non delta rs232 device suing the rs232 delta HMI.