how to define the address in adr block(com_mod_master)
Voted best answer
You declare the address of the variabel when you declare the variabel.
The ADR block translate the address of you variabel so the COM_MOD_MAST can use it.
From Codesys Help:
CoDeSys operator:Address Function not prescribed by the standard IEC61131-3.
ADR returns the address of its argument in a DWORD. This address can be sent to manufacturing functions to be treated as a pointer or it can be assigned to a pointer within the project.
Example in IL: