Register    Login    Forum    Search    FAQ

Board index » Programming Alarm Modems » TiXML




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Creating time variables
 Post Posted: Tue Oct 11, 2005 1:55 pm 
Offline
Tixi-Support-Team

Joined: Mon Oct 10, 2005 1:40 pm
Posts: 94
Location: Berlin
The Alarm Modem offers the RTC time in system variables with different formats, e.g.
in the RFC822 format with "/TIMES/RFC822Date"
with format hh:mm:ss at "/TIMES/Time"
or as a date at "/TIMES/Date"

Nevertheless, there is no variable that contains only the second, minute, the day etc. One may need this, e.g. to synchronize the time of a connected PLC.

You can create these time variable by yourself, using the MID instruction to parse the time string:

[<SetConfig _="PROCCFG" ver="y">
<ProcessVars>

<Year>
<Value>
<MID _="&#xae;/TIMES/Date" start="0" length="4"/>
</Value>
</Year>

<Day>
<Value>
<MID _="&#xae;/TIMES/RFC822Date" start="4" length="2"/>
</Value>
</Day>

<Month>
<Value>
<MID _="&#xae;/TIMES/Date" start="6" length="2"/>
</Value>
</Month>

<Hour>
<Value>
<MID _="&#xae;/TIMES/Time" start="0" length="2"/>
</Value>
</Hour>

<Minute>
<Value>
<MID _="&#xae;/TIMES/Time" start="3" length="2"/>
</Value>
</Minute>

<Second>
<Value>
<MID _="&#xae;/TIMES/Time" start="6" length="2"/>
</Value>
</Second>

</ProcessVars>
</SetConfig>]

_________________
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 5 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