Hi all,
i am trying to write a checksum function found in a PLC program.
i have a line as below
chksum = chksum + (ReqMsg[i] & 00FF) + ((floor(ReqMsg[i]/8)) & 00FF) ;
i want to evaluate the expression, but it contains a char ReqMsg[i] and a int chksum and 00FF. If i want the final evaluation to be integer, how should i change the line?
Many thanks in advance~