Loop Routine

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Pedromlo
Member
Posts: 12
Joined: Tue Sep 26, 2006 9:57 am
Location: Portugal

Loop Routine

Post by Pedromlo »

Hi,
The security controller HAI, is a slave device.
I need to send the request string (HEX) every second, so i can read the security zones changes and then execute some tasks.
Can you give me a clue on how to do that?
Also i want to connect a Modbus device which also needs to be read periodicaly.

Thanks
bjlamarca
Member
Posts: 83
Joined: Wed Apr 13, 2005 1:09 am
Location: White Plains, NY

Post by bjlamarca »

To give you a start: Create a task that has a conditon that runs when the "System Time.Time is Not Equal to 12:00am." This task will fire every second (except 12:00:00). Then setup the serial device to send the hex data
Marchi
Member
Posts: 1
Joined: Thu Jul 15, 2010 2:30 pm

Re: Loop Routine

Post by Marchi »

Hello

This is my first post in CeBotics. I want to address Modbus serial HVAC and Diesel Generators using CeBotics.

From my limited knowedge of Modbus, this requires that I send a message to the devices and read the responses.

My question is: Has anyone already done this?

If so, I would greatly appreciate your input in setting this up.

Regards
Post Reply