Question
I got 64 bytes User Data and Results modules when adding my Cognex device to the hardware configuration in TIA Portal.
How can I change this to have either a smaller or bigger data size?
Answer
Go to the Device view, right-click on the module that you would like to replace, then select Delete:

Select a compatible module from the Hardware catalog that you would like to put in place and drag&drop that module to the placeholder in the Device overview

Set the address range according to your project needs:
