Usually programs for the modem connection are needed in the PLC. Refer to the according manufacturer documentation for the programming and configuration of these function components.
The configuration of the modem has to be defined. Refer to the modem documentation for according register documentation.
If the PLC should call the Runtime, the identification necessary for the driver has to be implemented. Refer to the driver documentation for details.