AngryRobot

Help with SerialRcv command

2 posts in this topic

I need to receive data back over a serial connection.  I got the Send command set up already and it works fine.  But I cannot get the Receive command to work.  I keep getting the error "ARRAY[0..5] OF BYTE cannot be converted to BYTE[] type".

What type of variable do I need to use for IN put on this instruction?  I thought it had to be an array of byte.

Share this post


Link to post
Share on other sites

You need to put the index in the entry.  So, if your array is called TestArray, enter it like this TestArray[0].  The reason being that you might not want to start with the first element of the array.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now