Professional Documents
Culture Documents
ANALOG O en
ANALOG O en
(ANALOG_O)
General Description:
This macro converts the value as engineering unit with a defined
scale to the analog output in binary format. For the PLC2 is
accepted only the Parameter P788 and P789 is configured
to 0, 1 or 4.
It can be used in equipments: PLC1.01, PLC2.00 and POS2.00.
Input Parameters:
In (float) - Value to be converter for the analog output
Scale (float) - Range for the value conversion
Offset (float) - Value (proportional to the range) to be added
to the converted value of the analog output
Gain (float) - Gain for the setting and converted value of the
analog output
Type (word) - Selection of the analog signal type as shown below:
0 - 0 to +10 Vdc
1 - -10 to +10Vdc
2 - 0 to 20 mA
3 - 4 to 20 mA
4 - -20 to +20 mA
Output Parameters:
Out (word) - Value converted into binary format for the analog
output.
Notes
1) This user block uses the following markers, therefore,
don't use them in user program:
-BIT: MX3407, MX3406, MX3405, MX3404, MX3403,
MX3402, MX3401, MX3400, MX3399, MX3398,
MX3397
-FLOAT: MF9174
Operation:
The selected analog input is converted as shown below:
In Offset
Out 32767 Gain
Scale
Example:
Configuring the user block as shown below:
Input
In - %MF9000
Scale - 1000.0
Offset - 0.0
Gain - 1.0
Type - 0
Output
Out - %QW101 (Analog Output 1)
The input "In" displays 500.0. The output "Out", according to the
predefined scale, displays 16383, which corresponds to 5Vdc at
the analog output 1 of the CFW09.
________________________________________________
WEG S/A
Version: 1.00
Date: 08/25/2006__________________________________