Sign in to follow this  
Followers 0
Huxley

Receiving serial data with a CJ1M question

4 posts in this topic

I'd like to use a CJ1M controller to receive data via the 9 pin serial port on the unit. I'd like to capture the live data and port it to a DM file. I have an idea that Host link is involved but, but I'm hoping that someone can point me to some past examples, or give me some advice. Baud Rate: 115 200 Thank you!

Share this post


Link to post
Share on other sites
Take a look at the RXD(235) instruction. It will receive up to 256 bytes of data at a time and store it directly into D registers. The TXD(236) instruction is the corresponding transmit instruction.

Share this post


Link to post
Share on other sites
Using RXD and TXD, requires that the port be set up for a MODE of RS232C in the settings window for the Host Link port. This means that it is using a "no protocol" mode with the RXD / TXD instructions.

Share this post


Link to post
Share on other sites
Welcome to the forum. What device will be sending the data? The "Host Link" port can be configured in different ways depending on the connected device.

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
Sign in to follow this  
Followers 0