in Macro

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

in Macro

Post by saschech@gmx.de »

Hallo together

My problem:
"in macro" read in flowcode simulation 00
on my bord:
"in macro" read in flowcode simulation ff

so i have a big problem to simulate,because alltime i must changing the value of my read.
Is there a way to changing the read value only in flowcode simulation?

Regards wolfgang

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: in Macro

Post by Sean »

Hello Wolfgang,

You can set the values read by simulated inputs by adding switch components to your flowchart and configuring the connection settings for the correct ports and pins. In the switch properties, set the 'Switch Type' to 'Toggle'. This will allow any input pattern to be set permanently.

The switch setting can be read directly by the "in_macro" (you do not need to use switch component functions to read the values).

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: in Macro

Post by saschech@gmx.de »

Hallo Sean

The tip work but if i send data to the port,in simulate mode the led`s connect to the port have a other reaction.

regards wolfgang

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: in Macro

Post by Benj »

Hello Wolfgang

If you are outputting values on the ports then the LEDs will not behaive the same as the switches in simulation and on hardware. This is because the LED resistors are much smaller then the switch resistors allowing the LEDs to reflect the I/O pin status rather then the switch status. You can use the masking option if you need to leave pins as inputs when performing output writes etc.

Post Reply