EasyManua.ls Logo

Megmeet MV200 Series - Page 220

Default Icon
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
220
such as the current, voltage, frequency, power, torque, percentage, etc. which shall consider the positive and
negative. Its data type is int or long. The latter is used for the mode selection or the status indication, such as
displaying the parameters selection, indicating the running status, etc. which needn’t consider the positive and
negative. Its data type is unsigned int or unsigned long. The type and the value range of parameters are as
shown in the following table:
Type
Number of
bits
Value range Remarks
int 16 -32768~32767
Parameter of type I
long 32 -2147483648~2147483647
unsigned int 16 0~65535
Parameter of type II
unsigned long 32 0~4294967296
If the 16-bit access mode is adopted to read the parameter with an actu al length of 32 bits, the 16 low bits of
this parameter of 32 bits will be captured and returned. This value may be not equal to the original value; it will
be detailed in the following text.
If the 32-bit access mode is adopted to read the parameter with an actual length of 16 bits, the 32-bit data
returned is the data expanded, that is, the length of the 16-bit parameter is expanded. The principles for the
length expansion are as follow: if the highest bit of the 16-bit parameter value is 0, its 16 high bits will be filled
with 0; if the highest bit is 1, it needs to judge the type of the parameter, for the parameter of type I, its 16 high
bits will be filled with 1, but for the parameter of type II, its 16 high bits will be filled with 0.
If the data length is the same, that is, reading the 16-bit parameter in the 16-bit mode or reading the 32-bit
parameter in the 32-bit mode, there is no need to expand or cut the length, the original value will be returned.
Assuming the parameter types of P01.01~P01.07 are as follows:
The value of P01.01 is 4500 (16-bit parameter of type I, 0x1194);
The value of P01.02 is 65036 (32-bit parameter of type I, 0x0000FE0C);
The value of P01.03 is -500 (16-bit parameter of type I, 0xFE0C);
The value of P01.04 is 5000 (32-bit parameter of type I, 0x00001388);
The value of P01.05 is 100000 (32-bit parameter of type I, 0x000186A0);
The value of P01.06 is -100000 (32-bit parameter of type I, 0x FFFE7960);
The value of P01.07 is 0x FFFF (16-bit parameter of type II).
The values returned in the reading operation are as shown in the following table:
Register
address
Access mode Value returned Description
P01.01
16-bit 0x1194 The actual value is returned.
32-bit 0x00001194
The 16 high bits are filled with 0 and the actual value
is returned.
P01.02
16-bit 0xFE0C
The 16 low bits are captured and the value retuned is
-500, which is different from the actual value.
32-bit 0x0000FE0C The actual value is returned.

Table of Contents

Related product manuals