CapinWinky
Member
Rockwell uses 32bits of memory to store INT and SINT, all integers on a Compact/ControlLogix are treated internally as 32bit. They say they are doing this for performance reasons. Other VxWorks implementations use 16 and 8 bits of memory for INT and SINT respectively and there is no performance ding.
SINT1:= SINT2 + SINT3;
executes exactly as fast as
DINT1:= DINT2 + DINT3;
on normal 32bit systems without reserving 32bits for each SINT.
There is plenty of memory, so it's not a big deal, it's just weird. I'm speculating that the particular CPU they selected had some quirk about it and they did this to get around it.
SINT1:= SINT2 + SINT3;
executes exactly as fast as
DINT1:= DINT2 + DINT3;
on normal 32bit systems without reserving 32bits for each SINT.
There is plenty of memory, so it's not a big deal, it's just weird. I'm speculating that the particular CPU they selected had some quirk about it and they did this to get around it.