Register    Login    Forum    Search    FAQ

Board index » Programming Alarm Modems » TiXML




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Adjust Analog Input
 Post Posted: Mon Dec 05, 2005 3:49 pm 
Offline
Tixi-Support-Team

Joined: Mon Oct 10, 2005 1:40 pm
Posts: 94
Location: Berlin
Some information on how to adjust the analog input of the Tixi Alarm Modem:

1. Requirements
After a "factory reset" and without "periphery" database the analog input is set to range 0-10000 (10V=10000).

If a "periphery" with Numerator/Denominator = 1/1 is loaded, one will get the raw 12Bit range 0-3798 (10V=3798 +/- 38 )

[<SetConfig _="PROCCFG" ver="v">
<Periphery>
<Module Name="ADC 1*12bit" Address="C9a">
<Numerator _="1"/>
<Denominator _="1"/>
<Tolerance _="1"/>
<Rate _="1000"/>
</Module>
</Periphery>
</SetConfig>]

2. Examples
2.1. Display 10 at 10V
To to get a range 0-10 (10V=10), there are two solutions:
2.1.1 Periphery
Use the "periphery" database to adjust the range:
10V = 3798*(10/3798)

[<SetConfig _="PROCCFG" ver="v">
<Periphery>
<Module Name="ADC 1*12bit" Address="C9a">
<Numerator _="10"/>
<Denominator _="3798"/>
<Tolerance _="1"/>
<Rate _="1000"/>
</Module>
</Periphery>
</SetConfig>]

2.1.2 ProcessVar
OR (!) load the AI into a process variable to define decimal places using the "format" option
(10V = 10,000):

[<SetConfig _="PROCCFG" ver="v">
<ProcessVars>
<AI format="F,3">
<Value>
<LD _="/Process/MB/A/AI/P0"/>
</Value>
</AI>
</ProcessVars>
</SetConfig>]


2.2 Display 30 at 10V
To get a range 0-30 (10V=30), there are two solutions:
2.2.1 Periphery
Use the periphery to adjust the range:
10V = 3798*(30/3798)

[<SetConfig _="PROCCFG" ver="v">
<Periphery>
<Module Name="ADC 1*12bit" Address="C9a">
<Numerator _="30"/>
<Denominator _="3798"/>
<Tolerance _="1"/>
<Rate _="1000"/>
</Module>
</Periphery>
</SetConfig>]

2.2.2 ProcessVar
OR load the AI into a process variable and use math operations for the calculation: 10V = 10000/1000*3

[<SetConfig _="PROCCFG" ver="v">
<ProcessVars>
<AI>
<Value>
<LD _="/Process/MB/A/AI/P0"/>
<DIV _="1000"/>
<MUL _="3"/>
</Value>
</AI>
</ProcessVars>
</SetConfig>]

2.3 Display 500 at 3V
To get a range 0-500 (3V=500), there are two solutions:
2.3.1 Periphery
Use the "periphery" database to adjust the range:
3V = 3798*(3/10)*(500/(3798*(3/10))) = 1139,4*(500/1139,4) = 11394*(5000/11394)

[<SetConfig _="PROCCFG" ver="v">
<Periphery>
<Module Name="ADC 1*12bit" Address="C9a">
<Numerator _="5000"/>
<Denominator _="11394"/>
<Tolerance _="1"/>
<Rate _="1000"/>
</Module>
</Periphery>
</SetConfig>]

2.3.2 ProcessVar
OR (!) load the AI into a process variable and use math operations for the calculation: 3V = 500 = 3000/6

[<SetConfig _="PROCCFG" ver="v">
<ProcessVars>
<AI>
<Value>
<LD _="/Process/MB/A/AI/P0"/>
<DIV _="6"/>
</Value>
</AI>
</ProcessVars>
</SetConfig>]

3. Application
The calculated analog value is now available within the process variable "AI" and may be included into message texts.
The reference to the calculated value is: &#xae;/Process/PV/AI;

The calculated value may even be queried manually:
[<Get _="/Process/PV/AI" ver="y"/>]

_________________
Tixi Support Team

E-Mail-Support, Mo-Fr, 9:00am - 5:00pm, Tixi-Support@tixi.com
Support-Hotline, Mo-Fr, 9:00am - 5:00pm, +49-30-406 08 300


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 1 post ] 

Board index » Programming Alarm Modems » TiXML


Who is online

Users browsing this forum: No registered users and 3 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron