|
The order of arguments for the Serin and Serout commands in the Robot Controller's User CPU are determined by the internal structure of the RC, and the requested data from the Master CPU in your "DEFINE CONSTANTS FOR INITIALIZATION" section. Whatever constants you define as 1 in that section will be returned to you in your SERIN command IN THE ORDER THEY ARE LISTED IN THE CONSTANTS FOR INITIALIZATION SECTION OF THE DEFAULT CODE. (VERY IMPORTANT!) The SEROUT order is FIXED, and the comment above the command in the default code shows the order that the Output CPU is expecting the data. ANY change from this order will have unexpected results.
Take a look at the default code, that will show you the necessary order.
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
|