littledaus87

CP1E-N30DT with Hyperterminal PC

13 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

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