Marc F. Lupien
06-13-2021, 12:41 PM
Hi there,
Does anyone has any information or examples on reading data from a CSV file (csv=comma separated values) from a sbp script ? I mean using the <open file for input as #1> and <input #1,&varx,&vary> statements.
I want to write a custom sbp file where the user inputs a position-ID and the sbp file reads a csv file where multiple x-y locations are defined and have a corresponding name. When the position name corresponding to position-ID is found, the script would move to that location.
I have tried a couple of things but the doc are very vague on the subject and so far, it doesn`t work.
The reason for this script is that I have to run the same toolpath at different locations that must be very precise and I want to decrease the possibility of error by using names instead of having the user enter position directly.
thanks in advance for any help.
Does anyone has any information or examples on reading data from a CSV file (csv=comma separated values) from a sbp script ? I mean using the <open file for input as #1> and <input #1,&varx,&vary> statements.
I want to write a custom sbp file where the user inputs a position-ID and the sbp file reads a csv file where multiple x-y locations are defined and have a corresponding name. When the position name corresponding to position-ID is found, the script would move to that location.
I have tried a couple of things but the doc are very vague on the subject and so far, it doesn`t work.
The reason for this script is that I have to run the same toolpath at different locations that must be very precise and I want to decrease the possibility of error by using names instead of having the user enter position directly.
thanks in advance for any help.