Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:sw:01-mervis:analog-inputs-hidden [2021/08/05 12:20] avsetula |
en:sw:01-mervis:analog-inputs-hidden [2021/08/05 12:21] avsetula [Reading the input values] |
||
---|---|---|---|
Line 45: | Line 45: | ||
Reading the input values for all modes is the same. Once you set the correct mode, you can just simple read a real value from the variable. The variable is called AI_X.Y 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 read it in the **Debugging** mode. | Reading the input values for all modes is the same. Once you set the correct mode, you can just simple read a real value from the variable. The variable is called AI_X.Y 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 read it in the **Debugging** mode. | ||
- | <WRAP center round info 60%> | + | <WRAP center round info 80%> |
When reading the value of AO_X.Y in Voltage mode, the value is in volts (value 1.234 = 1.234 V⎓). When reading the value in Current mode, the value is in miliampers (value 3.145 = 3.145 mA). When reading the value in Resistance mode, tha value is in ohms (value 1012 = 1012 Ω) | When reading the value of AO_X.Y in Voltage mode, the value is in volts (value 1.234 = 1.234 V⎓). When reading the value in Current mode, the value is in miliampers (value 3.145 = 3.145 mA). When reading the value in Resistance mode, tha value is in ohms (value 1012 = 1012 Ω) | ||
</WRAP> | </WRAP> | ||