
Thom (Customer) asked a question.
How to implement RS-232 with the P1AM-100?
I am looking to interface with a rotary stage that uses Rs-232 for communications. What methods are available for serial communications?

Thom (Customer) asked a question.
I am looking to interface with a rotary stage that uses Rs-232 for communications. What methods are available for serial communications?
Copyright © 1999-2023 AutomationDirect. ALL RIGHTS RESERVED
P1-540
Currently the best options are breakout boards like this: https://www.sparkfun.com/products/449
You can use pins 13 and 14 as a uart using "Serial1" in your code.
Hi @FACTS_AdamC (AutomationDirect) , im new using P1-AM100, do I need any library to implement Serial1 and GPIO 13 and 14 as UART?
No, simply using Serial1 should work without any issue. To get started I would take a look at the Arduino IDE example here: "File>Examples>04.Communication>SerialPassthrough"
i have used this max3232 break out board to good effect
female DB9
https://www.amazon.com/Conversor-RS232-Junta-hembra-DB9-3-3/dp/B005D5T292/ref=sr_1_1?dchild=1&qid=1588814220&sr=8-1&srs=3036900011
male DB9
https://www.amazon.com/Tarjeta-convertidora-DTE-RS232-macho/dp/B0088SNIOQ/ref=sr_1_29?crid=1YTHMTBADYAT7&dchild=1&keywords=max3232&qid=1588814146&sprefix=max3232%2Caps%2C308&sr=8-29&swrs=974CD707F3FF045CCDAD41058D2BA0EE
I made an open-source RS-422 / RS-485 shield for the PA1M-100. It'd be pretty easy to replace the chip and coneector in my design with an RS-232 driver like the MAX3232 and a DB-9:
https://bikerglen.com/blog/p1am-100-isolated-rs-485-shield/
Looks great! I wish there was an off-the-shelf solution.
I would diffidently try making one by using the P1AM-PROTO Proto Shield Kit and the RS232 break out board mentioned in earlier comments. https://www.sparkfun.com/products/449
.
Would it be possible for someone to send their code that uses the RS232 to communicate? My project needs to communicate a keyence controller to a P1am PLC. Thank you.
You'll need a breakout board or similar that converts the UART from the P1AM to RS232 levels on pins 13 and 14.
Otherwise, RS232 functions the same as normal Serial commands, just using "Serial1" in your code. I'd start by looking at: "File>Examples>04.Communication>SerialPassthrough"