I need to translate from C to ST following:
ptr = (ACP10PRADR_typ*) para_ptr->para.par_sequ.int_adr + para_ptr->para.par_sequ.cnt_adr;
Should this in ST work:
var
ptr : REFERENCE TO ACP10PRADR_typ
end_var;
ptr ACCESS ADR(servo.para.par_sequ.int_adr + servo.para.par_sequ.cnt_adr);
where: “servo.para.par_sequ.int_adr” is address of memory buffer allocated with TMP_alloc. In this memory buffer there is stored array/table of ACP10PRADR_typ.