Hi !
Hope you've already found a solution, if not, or if somebody as the same question, in TwinCAT you have to declare a input or output like that:
temp0 AT %I*: INT;
myOutput AT %Q*: BOOL;
And once you've build your solution you will be able to link those virtual IOs with your reel IOs in the "IO" module of TwinCAT