PcoAnaLim (FB)
FUNCTION_BLOCK PcoAnaLim
This function block is designed for controlling an analog input without limit supervision.
- InOut:
Scope
Name
Type
Initial
Comment
Input
InINT0
1: Analog input (Rangemin->Rangemax is depending on signal type and I/O module type).
ScaleMaxREAL27648
2: Scaling parameter: Maximum value for output VALUE/Out. (Input will be rescaled from
ScaleMinREAL0
3: Scaling parameter: Maximum value for output VALUE/Out. (Input will be rescaled from
InHysREAL0.5
4: Dead band for input. Output would only change value, if input changes more than Hystersis
EnLiveZeroBOOLFALSE
5: TRUE - Enable live zero for analogue input. An analogue input is connected to an IO-module or CPU and the module can’t detect live zero (2-10V)
TempPT100PT1000BOOLFALSE
6: TempPT100PT1000 = TRUE: Analog input is a PT100 or a PT1000 transmitter.
PbBOOLFALSE
7: ProfibusPA = TRUE: Analog input is a Profibus PA transmitter.
PbStatusBYTE8: Status on Profibus PA transmitter. (128 = ok)
FilTimeTIMETIME#2s0ms
9: Filter time, PT1 filter of the input signal, minimum value is 1 second
Inout
Scada10: Structure variable for connection to Scada system
Output
ErrorBOOLFALSE
Operation continues with error. The output ErrorID gives more details about the error.
OutINT0
1: Scaled signal of the input signal, In
ErrorIDERROR_ID.NO_ERROR
2: Err number, Output provides an error identifier if an invalid value was applied to an input