Академический Документы
Профессиональный Документы
Культура Документы
behave. Each one of the bits that compose it will indicate a state of it.
his word, the set point value is indicated
in hexadecimal frequency to which we want the inverter to run.
The entry / exit address for our PPO1 packages will be:
PKW: 256-263
PZD: 264-257
Once the frequency inverter is configured, we include the touch screen with
which we can work more easily. We select the KTP1000 Basic panel. Their
characteristics are:
In this case we also have to take into account the layout of the bytes.
Therefore, we can now create the data block that we will use when
transmitting the information. Further we include the variables for the
frequency reference in their corresponding place.
In the following image we see highlighted the command word along with its
frequency set point variable.
This frequency reference should have a value between -100% and + 100%,
but in our case we will give it values between 0% and 100% and the
direction of rotation will be controlled with its corresponding variables.
Then the status word would be placed taking into account the arrangement
of the high byte and the low byte. By means of this word we obtain
information of the state of the variator.
Now we would have to edit the function associated with the motor control
so that it obtains the data of the inverter and dump them to the DB that we
have created.
It is necessary to be clear about the entry / exit directions of the data. In
this case we will only use the PZD zone of the plot.
This function is composed of the following segments:
The frequency value that we send to the inverter is scaled between 0 and
16384 (4000 in Hex.) So if introduce a percentage we must make an
adjustment and multiply it by 164 (we make an approximation). The Highest
value corresponds to 100% of the frequency stored in the drive parameter.
By default this value is 50 Hz but we can modify it when we need it.
The exchange of the 8 bytes (PKE, IND and PWE) between the PLC and
the inverter must be done in a single message, it is not possible to do it as
in the motor control function. For this case we must use the DPWR_DAT
instruction to write (send) the data to the drive, and the DPRD_DAT
instruction to read them.
The data that we will send will be stored in the DB Parameters_send (DB2)
and those that we read from the drive. We will save in the DB
Parameters_Get (DB3).
The function to read the parameters is the following: