littledaus87

CP1E-N30DT with Hyperterminal PC

17 posts in this topic

Dear Expert,

i'm issue to do communication CP1E with PC via RS232.

im try to use plc for sending information and receive by hyperterminal pc.

after googling some information there have multiway to success. by the way until now cannot settle.

please expert share completed setup that's work:

1. communication cable from PLC - PC (my information use pin (2,3,9 jumper 4&5) - (2,3,5 jumper 7&8)

2. sample program that works (im using TXD & RXD with memory D1000 to keep data)

3. connection cable to PC using MOXA Serial to USB converter.

4. plc serial setting (default: 9600,7,N,1,Host link)

my target to give instruction to printer to start print. printer need ACSII code. if this communication success i'm will convert all data to ACSII by ACSII convert function.

 

thanks,

Share this post


Link to post
Share on other sites

Your port must be set to RS232, not Host Link to use TXD and RXD.  Make change and cycle power.

Share this post


Link to post
Share on other sites

You might also need a jumper between 4 and 6 on the PC end. Some PC's need it, others don't, but it can't hurt to add it.

Share this post


Link to post
Share on other sites

Yes, I agree.

PC  PLC

2 - 2

3 - 3

5 - 9

Jump 4 to 5 on PLC side and Jump 4 to 6 and 7 to 8 on PC side.

Share this post


Link to post
Share on other sites
On 3/18/2016 at 9:23 PM, Mendon Systems said:

You might also need a jumper between 4 and 6 on the PC end. Some PC's need it, others don't, but it can't hurt to add it.

 

On 3/18/2016 at 0:48 AM, Michael Walsh said:

Yes, I agree.

PC  PLC

2 - 2

3 - 3

5 - 9

Jump 4 to 5 on PLC side and Jump 4 to 6 and 7 to 8 on PC side.

Thank you Mendon & Michael for clear information.

Share this post


Link to post
Share on other sites
1 hour ago, littledaus87 said:

 

Thank you Mendon & Michael for clear information.

Dear expert. thanks it works well.

one more question regarding this testing, how to clear memory after we send 1packet of data.?

example:

from plc send: JDU|A|B|C|D| in decimal 74688512465124661246712468124

after job done i'm need to clear memory and wait for other instruction otherwise previous memory will overlap with new instruction.  

Share this post


Link to post
Share on other sites

Use BSET instruction to block set #0000 to your packet area.

Share this post


Link to post
Share on other sites
1 hour ago, Jay Anthony said:

Use BSET instruction to block set #0000 to your packet area.

Thank you Anthony, its really works.

now i'm looking to learn new communication. because my project cannot using serial cable due to distance PC and PLC its about 100meters.

from our supplier they propose to use CP1L-EL20D-R, now i'm loan it to study/test ethernet/tcp. i'm searching knowledge about it. 

Share this post


Link to post
Share on other sites
On 22/3/2016 at 11:41 AM, littledaus87 said:

Thank you Anthony, its really works.

now i'm looking to learn new communication. because my project cannot using serial cable due to distance PC and PLC its about 100meters.

from our supplier they propose to use CP1L-EL20D-R, now i'm loan it to study/test ethernet/tcp. i'm searching knowledge about it. 

can you screenshot the ladder diagram? i don't know how to create ladder diagram for rs232 communication. 
thank you.

Share this post


Link to post
Share on other sites

Open CQM1 in CX-Prrogrammer and change the PLC type to CP1E.

Share this post


Link to post
Share on other sites

Hi, 

I am new with plc handling, and i am using CP1E N20. I want to control i/o from my PC hyperterminal. But i don't know about the ladder logic. 

Can use one of your ladder logic file? If yes please suugest which one? 

Share this post


Link to post
Share on other sites
On 17/05/2018 at 9:22 PM, Jay Anthony said:

Open CQM1 in CX-Prrogrammer and change the PLC type to CP1E.

Hi, 

I am new with plc handling, and i am using CP1E N20. I want to control i/o from my PC hyperterminal. But i don't know about the ladder logic. 

Can use one of your ladder logic file? If yes please suugest which one? 

Share this post


Link to post
Share on other sites

You need to determine what your application is supposed to do, and write a ladder program to run it.  PLCs are not intended to be controlled from a text app like HyperTerminal.  If anything, it would be used to display data the PLC sends out a serial port telling status.  PLC still needs a program.

Share this post


Link to post
Share on other sites

I want a unique code for for every input and output... Like if signal come at input pin 0.1 then plc send 'a', for input pin 0.2 'b' and so on on RS232 .. Also when i send a code from pc to plc it should operate the output.. For eg. If i send 'x' from pc to plc via RS232, PLC would turn on output pin 0.1, for 'y' PLC would turn on 0.2 and so on. 

But lack of knowledge about ladder logic, i am unable to develop. 

Can you please help me regarding this? 

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