Programming
TX1200
63
Version: 1.1
strDataKL6771:
the data structure with which the
function block must be linked (see
).
TMpolling:
the time for which the function block should address the actuator. Default 10 s, minimum time
1 s.
VAR_OUTPUT
bBusy : BOOL;
ActValue : WORD;
iErrorID : MP_Error;
bError : BOOL;
bBusy:
this bit is set for as long as the function block is active.
ActValue:
contains the current position of the actuator (0...100 %).
iErrorID:
this output outputs an error code in the event of an error (see
).
bError
goes TRUE
at the same time.
bError:
the output becomes TRUE as soon as an error occurs. This error is described via the
iErrorID
variable.
6.3
Functions
POUs
Description
This function calculates a temperature from the value of an NI1000
L&S resistor.
This function calculates a temperature from the value of an NI1000
resistor.
This function calculates a temperature from the value of an NTC
resistor.
This function calculates a temperature from the value of an PT1000
resistor.
6.3.1
NI1000_LuS_TO_INT : INT
This function calculates a temperature from the value of an NI1000 L&S resistor.
Connect this function to
iMP_Sensor_Analog
. As output, you receive an INT variable that represents the
temperature with a resolution of 0.01 °C (20.5 °C, for example, is represented as 2050).
The lowest valid value of 872 ohms corresponds to -30 °C. If the value is smaller than this, 16#7FFD is
output.
The largest valid value of 1586 ohms corresponds to 115 °C. If the value is greater than this, 16#7FFE is
output.
VAR_INPUT
MP_Value : WORD;
MP_Value:
input for an ohmic NI1000 L&S sensor.
NI1000_LuS_TO_INT:
temperature in 0.01 °C.
Содержание TwinCAT 2 TX1200
Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...
Страница 2: ......
Страница 79: ......