Appendix 3 Communication Protocol 121
EV2000 Series Universal Variable Speed Drive User Manual
Table A-11 Set slave drive’s parameters
Function
meanings
Set the slave drive’s parameters: all parameters
Meanings Frame head Address Command Index of command Operation data
Verify
checksum
Frame tail
Master’s
Command
7EH ADDR 07(08) See Remark Parameters BCC 0DH
Number of byte 1 2 2 4 4 4 1
Response of
slave
7EH ADDR 00 See Remark Parameters BCC 0DH
Number of byte 1 2 2 4 4 4 1
Remark
Index of command is comprised by the group No. of parameters, and HEX number of Parameter No., for example:
If parameters of F1.11 is to be read, then Index of command=010B;
If parameters of F9.16 is to be read, then Index of command=0910;
If parameters of FF.01 is to be read, then Index of command=0F01;
If parameters of FP.01 is to be read, then Index of command=1301;
Relationship between the decimal value and Hex. Value
Group No. of
parameters
Decimal HEX.
Group No. of
parameters
Decimal HEX.
F0 0 00H F8 8 08H
F1 1 01H F9 9 09H
F2 2 02H FA 10 0AH
F3 3 03H FF 15 0FH
F4 4 04H FH 16 10H
F5 5 05H FL 17 11H
F6 6 06H Fn 18 12H
F7 7 07H FP 19 13H
Valid data 0~FFFF(That is: 0~65535)
Example ~010713010000024D\r Set FP.01 to 0, all the parameters are enabled to be changed.
Note:
The usages of group 7 and group 8 commands are the same. To avoid damaging EEPROM, the parameters changed frequently
should be saved in DSP RAM by group 8 commands if not necessarily written in EEPROM.
2) Example (Turbo C 2.0): Send the command of running the drive, stopping the drive and setting the frequency (need to
set F0.00=2, F0.03=2 first.)
#include <dos.h>
#include <bios.h>
#include <conio.h>
#include <stdio.h>
#define COM1 0 /*serial port 1*/
#define COM2 1 /*serial port 2*/
#define SET_COMPARA 0
/*To set the parameters of
communication ports */
#define DEFAULT_BAUD 0xE3 /*8-N-1,9600bps*/
#define PORT_ADDR 0x3F8
/* Address of serial port is
13F8H*/
#define delaytime 100 /*100ms delay time */