Hello All,
I wrote a code to execute the unprotected read for DF1. I created two Long (32 bits)data files numbered 9 and 10 where file 9 (L9) and file 10(L10) each with 200 elements. The problem is I could not read element in file L10. Any body have an idea what I am doing wrong?
The syntax I am using is
[DLE STX][DST][SRC][CMD][STS][TNS1][TNS2][ADDL][ADDH][SIZE][DLE ETX][CRC]
An instance of this syntax is (Numbers are in decimal):
[DLE STX][1 ][0 ][1 ][0 ][46 ][3 ][36 ][3 ][200 ][DLE ETX][CRC]
I calculated [ADDL][ADDH] as [36 ][3 ] to correspond to byte 804 which I beleive it should be the first element in L10 ( L9 have 200 elements. Accordingly, I used 201 * 4).
I am getting all the acknolowdgement from ML1200 but the data I am getting isdifferent from what is in L10.
thanks for your help in advance
Thanks in advance.
Best to all
I wrote a code to execute the unprotected read for DF1. I created two Long (32 bits)data files numbered 9 and 10 where file 9 (L9) and file 10(L10) each with 200 elements. The problem is I could not read element in file L10. Any body have an idea what I am doing wrong?
The syntax I am using is
[DLE STX][DST][SRC][CMD][STS][TNS1][TNS2][ADDL][ADDH][SIZE][DLE ETX][CRC]
An instance of this syntax is (Numbers are in decimal):
[DLE STX][1 ][0 ][1 ][0 ][46 ][3 ][36 ][3 ][200 ][DLE ETX][CRC]
I calculated [ADDL][ADDH] as [36 ][3 ] to correspond to byte 804 which I beleive it should be the first element in L10 ( L9 have 200 elements. Accordingly, I used 201 * 4).
I am getting all the acknolowdgement from ML1200 but the data I am getting isdifferent from what is in L10.
thanks for your help in advance
Thanks in advance.
Best to all
Last edited: