This FB results in the Ks factor depending on the actual diameter. There are two methods implemented for calculating the Ks factor. One option is the step function and the other is an exponential function. The prefered method can be set in "i_TypeExp".
| Recommended Task: | CYCLIC |
| Libraries used: | BM_TYPES_XXbd01 or higher |
| none |
| Marking: | Data type: | Description: |
|---|---|---|
| x_Enable | BOOL | Enable FB. |
| x_Execute | BOOL | Execute the fb once. |
| i_TypeExp | INT | set the type of KS output signal. 0: Output is step function. 1: Output is e-function. |
| ud_Diameter_Act | UDINT | actual diameter of the winder [1/10mm] . |
| r_Multiplier_Exp | REAL | multiplier for exponential function. see general describtion. |
| r_Denominator_Exp | REAL | Denominator for exponential function. see general describtion. |
| r_Ramp_Kp | REAL | Kp for step type output of Ks. 0: deactivates P-Controller. >0: Gain factor P-Controller. |
| a_Steps_KS_Value | REAL_8_BMARRAY | Ks value of each step. |
| a_Steps_KS_Range | UDINT_16_BMARRAY | Limits of each step for the Ks change. |
| Marking: | Data type: | Description: |
|---|---|---|
| x_Error | BOOL | Error at FB. |
| w_Error_Info | WORD | detailed error describtion. See table below. |
| r_KS_Faktor | REAL | KS factor. |
| w_Error_Info | Description: |
|---|---|
| Bit 0 | Warning: actual diameter bigger than the max set diameter. |
| Bit 1 | Warning: actual diameter smaller than the min set diameter. |
| Bit 2 | r_Multiplier_Exp smaller or equal 0. |
| Bit 3 | r_Denominator_Exp smaller or equal 0. |
| Bit 4-14 | - |
| Bit 15 | no technology license found. |