Werner
Member
I'm trying to get started with SCL.
qOut1:=WORD_TO_INT(DB50.DW0);
qOut2:=WORD_TO_INT("DB Cascade order".DW0);
qOut3:=WORD_TO_INT("DB Cascade order".DW[iIndex]);
The first to outputs are working. The third does not work. What am I missing here?
I have several list in several db's. I need to perform calculations in these lists. For instance:
Motorspeed(1)=Motorspeed(2)+Delta(1)
Motorspeed is a db with an array of reals. And Delta is als a db with an array of reals.
I need to loop through this calculation in steps. So on cycle calculate motor 1 to 10, next cycle calculate motor 11 to 20. etc...
Can you guys give me some tips?
qOut1:=WORD_TO_INT(DB50.DW0);
qOut2:=WORD_TO_INT("DB Cascade order".DW0);
qOut3:=WORD_TO_INT("DB Cascade order".DW[iIndex]);
The first to outputs are working. The third does not work. What am I missing here?
I have several list in several db's. I need to perform calculations in these lists. For instance:
Motorspeed(1)=Motorspeed(2)+Delta(1)
Motorspeed is a db with an array of reals. And Delta is als a db with an array of reals.
I need to loop through this calculation in steps. So on cycle calculate motor 1 to 10, next cycle calculate motor 11 to 20. etc...
Can you guys give me some tips?