Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

USER BLOCK FOR DRAW

(DRAW)

General Description:
It implements the Draw function for a given speed reference.
It can be used in equipments: PLC1.01, PLC2.00, POS2.00,
PLC11-01 and CFW11.

Input Parameters:
Ref (float) - Required speed reference for actuating the draw
Max (float) - Maximum Draw limit
Min (float) - Minimum Draw limit
Rate1 (float) - Draw increment/decrement rate
According to sampling time
Rate2 (float) - Draw increment/decrement rate
according to sampling time and continuous increment or decrement
Ts (word*) - Sampling time in ms** for the Draw
increment/decrement rate (Rate1 or Rate2)
TRate2 (word*) - Changing time in ms** of the Draw
increment/decrement rate from "Rate1" to "Rate2"
Up (bit) - Condition for incrementing the Draw value
Down (bit) - Condition for decrementing the Draw value
EnRate2 (bit) - Condition for timer enabling to change the rate
from "Rate1" to "Rate2"
Select (bit) - It selects the Draw value that will be added (0) or
multiplied (1) to the speed reference value
Reset (bit) - Command for transferring the predefined value
"Reset_V" to the output "Draw"
Reset_V (float) - Value to be transferred to the output when the
input "Reset" is activated

Output Parameters:
Out (float) - Reference output after Draw actuation
Draw (float) - Current Draw value after increment/decrement
Aux_T (word) - Auxiliary for the timer of the sampling time
Aux_TR (word) - Auxiliary for the timer of the sampling time for
changing the increment/decrement rate
Aux_Ts (bit) - Auxiliary for the sampling time
Aux_TR2 (bit) - Auxiliary for the time to change the
increment/decrement rate
Aux_UB1 (float) - Internal user block auxiliary
Aux_UB2 (float) - Internal user block auxiliary
Aux_UB3 (bit) - Internal user block auxiliary

Notes:
1) The “Output Parameters" markers must be of exclusive use
(they can not be used as destination data in other blocks in the
user program), because they can store values that will be used in
next scan for this user block.

2) * - The value must always higher than the user program scan
cycle.

3) ** - The timer unit is cs (centisecond) for CFW11 equipment.


Operation:
Draw is the value that can be added (when it has the same metric
unit for the speed reference) or can be multiplied (when it is a
percentage of the effective speed reference). The Draw value is
incremented or decremented through the Up and Down inputs or
decremented according to the defined rate (Rate1). This rate can
be changed after a continuous increment or decrement time
according to the predefined time (TRate2) and rate (Rate2).
Please find below the respective block diagram:

Example:
Configuring the user block as shown below:

Input
Ref - %MF9000
Max - +20.0
Min - -20.0
Rate1 - 0.01
Rate2 - 0.1
Ts - 100
TRate2 - 5000
Up - %IX1 (digital input 1)
Down - %IX2 (digital input 2)
EnRate2 - %MX1000
Select - %MX1001
Reset - %MX1002
Reset_V - 1.0

Output
Out - %MF9010
Draw - %MF9011
Aux_T - %MW7000
Aux_TR - %MW7001
Aux_Ts - %MX2010
Aux_TR2 - %MX2011
Aux_UB1 - %MF9174
Aux_UB2 - %MF9173
Aux_UB3 - %MX3407

If reference (Ref) is 300 and Draw (Draw) 10.0, the output will
show 310.0, when "select" is set to the logic level "0", or the
output will show 330.0, when "select" is set to the logic level "1".
If %IX1 (Up) is at logic level "1", the value of draw will be
incremented by 0.01 (Rate1) every 100ms (Ts). If this command
remains for more than 5000ms (TRate2), the value of draw will be
incremented after this time by 0.1 (Rate2) every 100ms.
________________________________________________
WEG S.A.

Version: 2.00
Added the parameters Aux_UB1, Aux_UB2 and Aux_UB3 to allow
compatibility of the user block with equipment PLC1.01, PLC2.00,
POS2.00, PLC11-01 and CFW11.
Date: 01/31/2008

Version 1.00
Date: 08/25/2006__________________________________

You might also like