Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sw:01-mervis:analog-outputs-hidden [2020/05/15 06:18]
avsetula
en:sw:01-mervis:analog-outputs-hidden [2024/04/15 13:55] (current)
avsetula [Measuring resistance (temperature)]
Line 1: Line 1:
 ====== Analog outputs ====== ====== Analog outputs ======
 +<WRAP group 100%>
 +<WRAP half column 81%>
 In this tutorial, we are going to demonstrated how to use different modes of analog outputs. In this tutorial, we are going to demonstrated how to use different modes of analog outputs.
  
 Since some analog outputs are able to measure resistance, we will demonstrate how to directly transform measure values of resistive thermometers into temperature. Since some analog outputs are able to measure resistance, we will demonstrate how to directly transform measure values of resistive thermometers into temperature.
-===== Prerequisites ​=====+</​WRAP>​ 
 +<WRAP half column 15%> 
 +;;# 
 +<​html><​span class="​dev-tag dev-patron">​Patron</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-axon">​Axon</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-extens">​Extension</​span></​html>​ 
 +;;# 
 +</​WRAP>​ 
 + 
 +</​WRAP>​ 
 +<WRAP center round box> 
 +<​html><​span class="​kbBlue-H4alt">​Prerequisites:</​span></​html>​
   * UniPi controller running Mervis OS   * UniPi controller running Mervis OS
   * Basic project with attached controller a program in FBD mode   * Basic project with attached controller a program in FBD mode
-  * [[https://​www.unipi.technology/​power-supplies-c15|24V power supply]]+  * [[https://​www.unipi.technology/​power-supplies-c15|24 V⎓ power supply]]
   * Knowledge of how the [[en:​automation:​02-glossary:​analog-outputs-hidden|analog outputs]] work on UniPi units   * Knowledge of how the [[en:​automation:​02-glossary:​analog-outputs-hidden|analog outputs]] work on UniPi units
  
 In this tutorial, we will use [[https://​www.unipi.technology/​unipi-neuron-l503-p105?​categoryId=10|Unipi Neuron L503]]. In this tutorial, we will use [[https://​www.unipi.technology/​unipi-neuron-l503-p105?​categoryId=10|Unipi Neuron L503]].
 +</​WRAP>​
  
 ===== Introduction ===== ===== Introduction =====
Line 15: Line 30:
  
 <WRAP center round info 60%> <WRAP center round info 60%>
- The default mode of each output is "​Voltage"​ and the output value is set to 0V.+ The default mode of each output is "​Voltage"​ and the output value is set to 0 V⎓.
 </​WRAP>​ </​WRAP>​
  
Line 33: Line 48:
  
 <WRAP center round info 60%> <WRAP center round info 60%>
-When setting the value of AO_X.Y_w in Voltage mode, the value you enter is in volts (value 1.234 = 1.234V). When setting the value in Current mode, the value you enter is in miliampers (value 3.145 = 3.145mA)+When setting the value of AO_X.Y_w in Voltage mode, the value you enter is in volts (value 1.234 = 1.234 V⎓). When setting the value in Current mode, the value you enter is in miliampers (value 3.145 = 3.145 mA)
 </​WRAP>​ </​WRAP>​
  
Line 48: Line 63:
 The analog output on Group 1 of Neuron and Axon (AO_1.1) is able to measure resistance as well /* FIXME (check the documentation na mereni odporu do Automation 101 -> How to's) */. To set the AO_1.1 to the Resistance measurement mode, follow the configuration steps above. The analog output on Group 1 of Neuron and Axon (AO_1.1) is able to measure resistance as well /* FIXME (check the documentation na mereni odporu do Automation 101 -> How to's) */. To set the AO_1.1 to the Resistance measurement mode, follow the configuration steps above.
  
-The resistance measurement is mostly used for measuring resistive thermometers such are Pt100, Pt1000, Ni1000,... Those sensors have known temperature vs. resistance curve and Mervis can directly transform the measured values into degrees of Celsius. This transformation is done on the property of the "write" variable, as with all the previous changes. Look for the property "​Transform"​ in the **Properties panel**. The default value is "​identity",​ which means the variable will always contain the measured resistance in Ohms. You can change the transformation to "​ResistanceToTemperature"​ and box with other options will appear underneath. All you need to do is to change the "​Kind"​ to the type of the resistive thermometer you are trying to read from. You can leave all the other parameters as is. And as with all the changes to the configuration of the PLC, [[en:​sw:​01-mervis:​unipi-configure-module-hidden|apply it]] as we did above.+The resistance measurement is mostly used for measuring resistive thermometers such are Pt100, Pt1000, Ni1000,... Those sensors have known temperature vs. resistance curve and Mervis can directly transform the measured values into degrees of Celsius. This transformation is done on the property of the "read" variable, as with all the previous changes. Look for the property "​Transform"​ in the **Properties panel**. The default value is "​identity",​ which means the variable will always contain the measured resistance in Ohms. You can change the transformation to "**ResistanceToTemperature**" and box with other options will appear underneath. All you need to do is to change the "​Kind"​ to the type of the resistive thermometer you are trying to read from. You can leave all the other parameters as is. And as with all the changes to the configuration of the PLC, [[en:​sw:​01-mervis:​unipi-configure-module-hidden|apply it]] as we did above.
  
-<WRAP center round tip 60%>+<WRAP center round important 90%>
 **Note:** apply the transformation only to the __analog output read__ data point (AO_x.xx_r),​ not to write (AO_x.xx_w). **Note:** apply the transformation only to the __analog output read__ data point (AO_x.xx_r),​ not to write (AO_x.xx_w).
 </​WRAP>​ </​WRAP>​
  
-{{ :​en:​sw:​01-mervis:​analog-outputs-05-tranform-kind.png?direct |}} +{{ :​en:​sw:​01-mervis:​analog-outputs-read-resistivity_transform.png?direct |}}
- +