Home > Software engineering >  Ask everybody to help me have a look, the communication protocol in every instruction is what mean
Ask everybody to help me have a look, the communication protocol in every instruction is what mean

Time:02-28

A, 0 x01 - test command: (check digit 2 byte) are shown in brackets
2, 0 x02 - normally open or set the input limit is normally closed: (check digit 2 byte) are shown in brackets
3, 0 x03 - set the serial port to the USB or RS232 (check digit 2 byte) are shown in brackets
4, 0 x04 - pulse (check digit 2 byte) are shown in brackets
Command: (5, 0 x05 - motor back to zero check digit 2 byte) are shown in brackets
6, 0 x06 - eight IO input query: (check digit 2 byte) are shown in brackets

Seven, eight 0 x07 - IO output: (check digit 2 byte) are shown in brackets
Issued by: C1 C2 07 04 xx aa (00 00 0 a 0 d (xx for IO number (0 to 7) with 0 aa low-level output to 1 high level output)
Returns: C1 C2 07 00 04 xx (00 00 0 a 0 d
Note: a command parsing failure: C9 C8 FF 02 (00 00 0 a 0 d


Eight, 0 x08 - motor can make output Settings: (check digit 2 byte) are shown in brackets
ADC data query: (9, 0 x09 - check digit 2 byte) are shown in brackets
10, 0 x0b - limit switch query: (check digit 2 byte) are shown in brackets
11, 0 x0a - motor stop (normal operation time stop) : (check digit 2 byte) are shown in brackets
12, 0 x0c - motor stop (back to zero when running scram) : (check digit 2 byte) are shown in brackets


A total of 12 instruction, it is a movement control CARDS of instruction, communication protocol is used to control axis movement,
"Eight IO output" out of this instruction is used to? An IO port input output level is different, can produce what effect

CodePudding user response:

Shaft to be zero movement, the first to set the zero point, the zero point which instruction is to call?

Is to set the input limit? But I only limit switch instructions and query limit, what should I do

CodePudding user response:

According to the agreement is back to zero 0 x05 - motor commands to watch?

The limit switch should be external sensors, usually exceed the limit position, sensors are covered, the signal is activated

  • Related