Sign in to follow this  
Followers 0
ace21122112

fx1s comm problem rs intruction

3 posts in this topic

Me again Anyone know why when run this program I am transmitting 7F 00 instead of FF 00 FF 00 rstest.zip

Share this post


Link to post
Share on other sites
Not sure why you're getting exactly what you're getting, but here's a couple of pointers. First, in Mitsubishi world a hex 00 is considered a null character, and generally acts as the end of a character string for ASCII instructions. The RS command deals with it differently. I thought it would ignore it, but you might try changing it to hex 01 just to test. It's possible that is messing things up. Second, the RS command sends a specific number of characters, not registers. So your "K2" is only sending two ASCII characters, or one register. Depending on how it's dealing with the null character, of course. EDIT: Ok, now I see it. In the PLC parameters, you have your data length set for 7 bit. That can only go up to hex 7F (i.e. binary 111 1111). You'll need to switch to 8 bit if you want to send hex FF. Edited by JRoss

Share this post


Link to post
Share on other sites
Ok got it working thanks

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