Hello.
I'm building a simple digital controller, which works like this: User enters number of points (steps) to move head to. At each step, user enters desired x/y/z positions and movement speeds. Then the task is done based on user entered data. However, user might choose 1 or say 32 points (steps) to do. How get this data from user, and where to store it? my rough idea is like this
I guess this will work, but is there a way to do it without using eeprom ? and there might be another data too, so not all chips might have enough eeprom available. I think it is possible to do this using ARRAYWRITE, but I did not fully understood how to use it, despite reading the reference manual. For the array variables, it is ok, but since I'm using PIC16F886 device, and array variables there are limited to 48 WORD variable, this might allow me to store only 12 "steps" - almost same limitation as eeprom. So it there a way to have more "steps", say 30-40, each of which holds set of 4 WORD variables?
I'm building a simple digital controller, which works like this: User enters number of points (steps) to move head to. At each step, user enters desired x/y/z positions and movement speeds. Then the task is done based on user entered data. However, user might choose 1 or say 32 points (steps) to do. How get this data from user, and where to store it? my rough idea is like this
Code:
FOR A=0 TO B*5 STEP 5' where B is number of total steps to be done.
GOSUB ENTRYFORM 'Go to subroutine, where user enters X/Y/Z/Speed data. this routine returns values in variables X, Y, Z, S, where each hold appropriate data like position and speed
WRITE A, X 'Write data to eeprom
WRITE A+1,Y
WRITE A+2,Z
WRITE A+3,S
NEXT