Page 5 of 5

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 12:45 pm
by DylanBalloo
Hey Leigh, still cant find the nldx in pwm....does it works as in flowcode 4

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 12:57 pm
by DylanBalloo
Window open.fcf
(9.5 KiB) Downloaded 597 times
I've tried a to run a small program using pwm, when running the simulation its working but when uploading it on miac,there's error??

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 1:27 pm
by LeighM
Hi Dylan
Your program looks good. Only one small thing missing: You need to go to the “Connections” and select “MIAC(0)” for each PWM component.
(You need this extra step because your project setting is “MIAC System” rather than “MIAC”, so with MIAC System the PWM component could be attached to an Expansion module)
Regards
Leigh

Re: MIAC based temperature controller

Posted: Thu Dec 20, 2012 3:50 pm
by DylanBalloo
Ok,working...thanks Leigh...

Re: MIAC based temperature controller

Posted: Sun Jan 27, 2013 7:33 pm
by DylanBalloo
Hello friend,
Do you have a written program for MIAC and the GSM module. I want to send an sms from the GSM module to a phone number.How can I do it??..
Thank you

Re: MIAC based temperature controller

Posted: Mon Jan 28, 2013 10:10 am
by LeighM
Hi

You can send a text message by using the three macros of the GSM component:
Initialize
CheckNetworkStatus
SendTextMessage

First call the Initialize macro,
then loop, including a 1 second delay, waiting for the CheckNetworkStatus macro to return a value of 1 to indicate that the network has connected.
Then use the SendTextMessage macro to send the required message.

Regards,
Leigh

Re: MIAC based temperature controller

Posted: Mon Jan 28, 2013 5:33 pm
by DylanBalloo
Ok thank you Leigh...

Re: MIAC based temperature controller

Posted: Mon Jan 28, 2013 5:39 pm
by DylanBalloo
Can I ask you something is is possible to send a message to the GSM module to activate any relay or motor output??

Re: MIAC based temperature controller

Posted: Tue Jan 29, 2013 10:01 am
by LeighM
Hi Dylan

Yes you can use the CheckForIncoming macro to detect that a text message has been received.
Then use the ReadString macro and check for a particular text string (such as ON and OFF) and switch an output accordingly.
Have a look at the GSM component help file for further information.

Regards,
Leigh

Re: MIAC based temperature controller

Posted: Tue Jan 29, 2013 12:19 pm
by DylanBalloo
Where can I get the GSM help file??

Re: MIAC based temperature controller

Posted: Tue Jan 29, 2013 12:27 pm
by LeighM
Hi Dylan
The help can be invoked from within Flowcode.
In the Properties panel, select the GSM Component and you will see Ext Properties, Connections, Custom Code and Help
Regards,
Leigh

Re: MIAC based temperature controller

Posted: Tue Jan 29, 2013 2:25 pm
by DylanBalloo
Ok thank you Leigh.