paddax Posted April 4, 2013 Share Posted April 4, 2013 Is there a gpascii method for getting and setting IData, DData etc as a block rather than issuing single commands. As an example if I have 10,000 IData elements, to read or write all of them appears to be 10,000 discrete communications and this is going to take a long time (probably about 10 seconds). There are methods for obtaining values for a number of contiguous P,M,Q etc variables e.g. P1..4, but I can't see any method for setting a set of contiguous variables e.g. P1..4=1,2,3,4 I just realised that's actually two questions, I hope you don't mind Link to comment Share on other sites More sharing options...
Sina.Sattari Posted April 4, 2013 Share Posted April 4, 2013 You can use the following commands for reading/writing data blocks: For reading n registers, starting at register x: Sys.Idata[x],n For writing n registers, starting at register x: Sys.Idata[x]={value for x},{value for x+1}, ... ,{value for x+n-1} Link to comment Share on other sites More sharing options...
paddax Posted April 4, 2013 Author Share Posted April 4, 2013 Thanks that's perfect:) Is this syntax is mentioned in the manual? Link to comment Share on other sites More sharing options...
Sina.Sattari Posted April 4, 2013 Share Posted April 4, 2013 I have to double check. Link to comment Share on other sites More sharing options...
Recommended Posts