GERRY JERESANO

Rs232 PLC Settings

12 posts in this topic

Good Day,

Some one who can help me, the rxd command could not read the data from my load cell. I am using CP1h PLC.  Am i using the correct setting? because the led is blinking in port no 1.

Thank you, 

Plc settings.png

Receive ( RXD ).png

Share this post


Link to post
Share on other sites

This looks to be correct.

Your load cell, does it append a CR+LF at the end of string?

Right now you are set to read 10 characters from the load cell.  If you change the bottom node from D100 to A394, you will read all data in the serial buffer.

gtsuport

1 person likes this

Share this post


Link to post
Share on other sites

Hello,

Sorry for the late replay, I am using PT210EN. Please see the attachment.

My Setting is: 1.Continuous Data Output

                         2. 9600 Baud rate

                         3. 8data bits, even par.

                         4. CR, enable

                         5. LF, enable

That's all 

Thank you,

PT210 EN.jpg

Share this post


Link to post
Share on other sites

No, you have your format wrong,  you show 8 data bits, No parity and 1 stop bit for your settings in your first post and specify 8 data bits, Even parity and 2 in your second post, so your settings in the PLC should be set to match and look like this:

Serial.jpg.8de4163cec1ed2d11d62f0a6ab025

Share this post


Link to post
Share on other sites

Finally i can read my Loadcell output to my PLC.

The problem is i cannot set a data to stop my pump at certain load.

Any body can help me?

Thank you

RXD DATA.png

RXD data1.png

Share this post


Link to post
Share on other sites

Thank very much for your help,

Just another question, How can i convert string data or do i have to convert the DATA ( string ) in to other form of data. Because i need to stop my pump in a certain load. Just an Example i have a 100 kg load at 90 kg the pump should stop running.

Thank you in advance.

 

Edited by GERRY JERESANO

Share this post


Link to post
Share on other sites

You will need to convert the data from ASCII to a number.

You should be able to use the HEX instruction.

Then use the converted data in a comparison instruction to stop flow.

Hope this helps.

gtsuport

Share this post


Link to post
Share on other sites

Good Day,

Thank you for your support. But i don't know why HEX command doesn't response. There is no conversion output. 

I have a 9.6 kg load but no conversion has been done.

What should i do? 

Thank you in advance.

HEX.png

Share this post


Link to post
Share on other sites

Thank You Very Much,

I understand now. I got it in a series of trial and error, Funny but effective.

Thank you,

HEX1.png

Share this post


Link to post
Share on other sites

Hello,

Any body can answer me what happen why D103 does not convert but d104 is okay. d104 is the data of first digit + decimal of my weigh-er. D104 is the data of 2nd and 3rd digit of my weigh-er. D104 - Di= #0010, while d103 - Di= #0012. 

HEX2.png

Share this post


Link to post
Share on other sites

finally i'm done, i got it. thank you..

I made my weighing scale into 2 decimal point..

Thank you.

Share this post


Link to post
Share on other sites

Glad to hear you got if figured out.

gtsuport

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now