RS232 Read Clarification

Forum for problems or queries regarding the Flowcode application and compiler usage.

Moderators: Benj, Mods

Post Reply
Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time
Contact:

RS232 Read Clarification

Post by Kumaran »

Hi,

How many bytes RS232Read function can read at any single instance? I have put RS232 read inside the while loop with the condition of 2. for this condition the read function reads and sends more than 100 ASCII character within two loops. How is it possible?
It is actually advantageous only but in the program we cannot utilize this with out knowing the logic.

Regards
Kumaran

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: RS232 Read Clarification

Post by Benj »

Hello

A loop condition of 2 is equivalent to loop forever as is anything over 0. A loop count of 2 will give you two individual loops which should yield more predictable and expected results. Each RS232 read / Write can handle one byte only.

Post Reply