dinh

avr(atmega8) read register D30 Fx-plc mitsubishi

2 posts in this topic

dear all.

avr(atmega8) reads D30 register Fx-plc Mitsubishi using rs232 to communication.

can u support me to explain this instruction Cmd = Chr(02) : Cmd = Cmd + "0103C02" : Cmd = Cmd + Chr(03) : Cmd = Cmd + "6C"

its writed by visual basic. I only know char(02): text start, char(03): text end  but I don't know "0103C02" and "6C". what is it mean??

pls help me, thanks so much. 

Share this post


Link to post
Share on other sites

I haven't really looked hard into your commands, but I think it is the following (you can verify it with the MC protocol manual, or FX manual):

  1. 02 - STX (Text Start)
  2. 0103C02 - Header and request ("MC" format)
  3. 03 - ETX (Text End)
  4. 6C - CRC or SumCheck

You can find a manual for MC protocol here, it's covering Q-series, but also FX series:
http://forums.mrplc.com/index.php?/files/file/1086-q_l-melsec-comms-mc-sh080008lpdf/

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