Flowcode 6 Arduino Uno rs232 Problem

Support-Forum für Deutschsprachige, die in ihrer Muttersprache schreiben möchten.

Moderator: Benj

Post Reply
golo
Posts: 4
Joined: Mon May 08, 2017 5:45 pm
Been thanked: 1 time
Contact:

Flowcode 6 Arduino Uno rs232 Problem

Post by golo »

Hallo

Ich habe eine RS232 verbindung 9600 in flowcode6 für Arduino Uno r3 DIP erstellt

Nur inizialisiert und die Zahl 23 gesendet und 1s warten dann von vorne

Wenn ich den Uno dann in der IDE / Therminal öffne kommt immer nur ein Quadrat

im Therminal ist auch 9600 eingestellt.

Was kann das sein

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: Flowcode 6 Arduino Uno rs232 Problem

Post by LeighM »

How are you sending 23?
Is the delay of 1 second OK?
Could you attach your Flowcode program?

Wie schickst du 23?
Ist die Verzögerung von 1 Sekunde OK?
Könnten Sie Ihr Flowcode-Programm anhängen?

golo
Posts: 4
Joined: Mon May 08, 2017 5:45 pm
Been thanked: 1 time
Contact:

Re: Flowcode 6 Arduino Uno rs232 Problem

Post by golo »

Rs232.jpg
Rs232.jpg (26.08 KiB) Viewed 12008 times

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: Flowcode 6 Arduino Uno rs232 Problem

Post by LeighM »

Hi,
You need to move the Initialize out of the loop, just call it once at startup.
Try a different value in SendChar, such as SendChar('X')
23 decimal is a non-printable character

golo
Posts: 4
Joined: Mon May 08, 2017 5:45 pm
Been thanked: 1 time
Contact:

Re: Flowcode 6 Arduino Uno rs232 Problem

Post by golo »

Wie kann ich denn eine zahl oder Variable übertagen

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: Flowcode 6 Arduino Uno rs232 Problem

Post by Benj »

Hier ist ein Beispiel, das eine numerische Variable als ASCII-String übergibt.
SendCountAsString.fcfx
(5.47 KiB) Downloaded 427 times


Here is an example which passes a numeric variable as an ASCII string.
SendCountAsString.fcfx
(5.47 KiB) Downloaded 427 times

golo
Posts: 4
Joined: Mon May 08, 2017 5:45 pm
Been thanked: 1 time
Contact:

Re: Flowcode 6 Arduino Uno rs232 Problem

Post by golo »

Jetzt geht es .

Vielen Dank für die Hilfe

Welche Funktion hat Data = Data + "\n"

Gruß

Post Reply