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/03/03 13:34]
jan_kozak
en:sw:01-mervis:analog-outputs-hidden [2024/04/15 13:55] (current)
avsetula [Measuring resistance (temperature)]
Line 1: Line 1:
-====== ​Analogové výstupy ​====== +====== ​Analog outputs ​====== 
-V tomto tutoriálu si ukážemejak použít různé módy analogových výstupů na PLC Unipi+<WRAP group 100%> 
 +<WRAP half column 81%> 
 +In this tutorialwe are going to demonstrated how to use different modes of analog outputs.
  
-Na vybraných modelech jednotek Unipi naleznete i analogové výstupy schopné měřit odporpředvedeme si proto, jak hodnoty odečtené z odporových teploměrů převést na teplotu+Since some analog outputs are able to measure resistancewe will demonstrate how to directly transform measure values of resistive thermometers into temperature. 
 +</​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>​
  
-===== Co budete potřebovat ===== +</​WRAP>​ 
-  * kontrolér Unipi s nahraným ​Mervis OS +<WRAP center round box> 
-  * připravený základní projekt s FBD programem +<​html><​span class="​kbBlue-H4alt">​Prerequisites:</​span></​html>​ 
-  * [[https://​www.unipi.technology/cs/​power-supplies-c15|24V napěťový zdroj]] +  * UniPi controller running ​Mervis OS 
-  * znalosti fungování ​[[cs:​automation:​02-glossary:​analog-outputs-hidden|analogových výstupů]] na jednotkách Unipi+  * Basic project with attached controller a program in FBD mode 
 +  * [[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
  
-V tomto tutoritálu budeme používat kontrolér ​[[https://​www.unipi.technology/cs/​unipi-neuron-l523-p329|Unipi Neuron ​L523]].+In this tutorial, we will use [[https://​www.unipi.technology/​unipi-neuron-l503-p105?​categoryId=10|Unipi Neuron ​L503]]. 
 +</​WRAP>​
  
 ===== Introduction ===== ===== Introduction =====
-The different analog outputs have different modes of operation, see [[en:​automation:​02-glossary:​analog-outputs-hidden|Analog outputs]]. Change between modes in Mervis is done by configuring the UniPi module, ​therefore ​the **changes in modes cannot be done in the program** and the program has to be stopped during the configuration.+The different analog outputs have different modes of operation, see [[en:​automation:​02-glossary:​analog-outputs-hidden|Analog outputs]]. Change between modes in Mervis is done by configuring the UniPi module, ​therefor ​the **changes in modes cannot be done in the program** and the program has to be stopped during the configuration.
  
 <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 31: Line 45:
    
 ===== Voltage and Current output ===== ===== Voltage and Current output =====
-Setting the output values for both Voltage and Current ​modes is the same. Once you set the correct mode, you can just simply ​write a real value to the variable. As we learned before, the correct variable is called AO_X.Y_w depending on the Group (number X) and the position in the group (number Y). To include this variable into the program, you need to **[[en:​sw:​01-mervis:​autogen-hidden|Set Autogen]]**. After that, you will see the variable in **Variable Browser** and you will be able to change it in the **Debugging** mode.+Setting the output values for both Voltage and Curent ​modes is the same. Once you set the correct mode, you can just simple ​write a real value to the variable. As we learned before, the correct variable is called AO_X.Y_w depending on the Group (number X) and the position in the group (number Y). To include this variable into the program, you need to **[[en:​sw:​01-mervis:​autogen-hidden|Set Autogen]]**. After that, you will see the variable in **Variable Browser** and you will be able to change it in the **Debugging** mode.
  
 <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 40: Line 54:
 The analog outputs can have a default value, which will be automatically set after starting the PLC. This functionality is for ensuring, that the connected technology will work right after the start of the PLC and not waiting until the Mervis Solution kicks in. The analog outputs can have a default value, which will be automatically set after starting the PLC. This functionality is for ensuring, that the connected technology will work right after the start of the PLC and not waiting until the Mervis Solution kicks in.
  
-The default value is configured in the properties of the "​write"​ variable for the given input. The procedure is the same as with setting the mode of the output. Double click on the prototype in the **Left panel**, look for the desired variable, select it and in its **Properties panel** change the "​Default ​Value" to the desired one. The value is the same you would write to the variable itself. So for Voltage modeit is a float number in volts, for Current modeit is float number in milliamperes.+The default value is configured in the properties of the "​write"​ variable for given input. The procedure is the same as with setting the mode of the output. Double click on the prototype in the **Left panel**, look for the desired variable, select it and in its **Properties panel** change the "​Default ​value" to the desired one. The value is the same you would write to the variable itself. So for Voltage mode it is a float number in volts, for Current mode it is float number in miliampers.
  
 {{ :​en:​sw:​01-mervis:​analog-outputs-04-change-default-value.png?​direct |}} {{ :​en:​sw:​01-mervis:​analog-outputs-04-change-default-value.png?​direct |}}
Line 47: Line 61:
  
 ===== Measuring resistance (temperature) ===== ===== Measuring resistance (temperature) =====
-The analog output on Group 1 of Neuron and Axon (AO_1.1) ​can measure resistance as well (check the documentation ​FIXME link 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 |}}