Register    Login    Forum    Search    FAQ

Board index » Programming Alarm Modems » TiXML




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post Posted: Tue Jun 06, 2006 3:51 pm 
Offline
Tixi-Support-Team

Joined: Mon Oct 10, 2005 1:40 pm
Posts: 94
Location: Berlin
Requested function:
The status of any PLC variable registered to the Alarm Modem may be queried by SMS. Only one event will be used within the TiXML code, to reduce project size. Therefore the queried variable will be defined within the SMS itself.

SMS example: TIXI STATUS MARKER1
Password: TIXI
Event: STATUS
Parameter1: MARKER1

It would be possible to query MARKER2, MARKER3, TEMP5... too.

Necessary code:
At first the PLC variable will be defined within the external database using significant names, e.g.:
<Device _="1" Name="Device_0" Pollrate="1s">
<MARKER1 _="M" acc="R" def="" ind="1" />
<MARKER2 _="M" acc="R" def="" ind="2" />
...
</Device>

Next (besides the access protection with PW TIXI, missing here) the EventHandler for the SMS response and it's MessageJobTemplate (missing here) has to be created:
<STATUS>
<SendMail _="MessageJobTemplates/SENDSTATUS"/>
</STATUS>

The message text of the response links to the delivered variable. The variable name within the reference is taken from the received SMS by reference to ~/P1. The name of the variable will also be written into the SMS:

<Subject _="Status &#xae;~/P1;: &#xae;/Process/Bus1/Device_0/&#xae;~/P;1"/>

The response will look like this:
"STATUS MERKER1: 1"

_________________
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