MIAC based temperature controller

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Hey Leigh, still cant find the nldx in pwm....does it works as in flowcode 4

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Window open.fcf
(9.5 KiB) Downloaded 495 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??

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Ok,working...thanks Leigh...

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Ok thank you Leigh...

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post 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??

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Where can I get the GSM help file??

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC based temperature controller

Post 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

DylanBalloo
Flowcode V4 User
Posts: 73
Joined: Mon Sep 24, 2012 4:31 pm
Been thanked: 1 time
Contact:

Re: MIAC based temperature controller

Post by DylanBalloo »

Ok thank you Leigh.

Post Reply