When I installed the smartmeter an extra I/O instance was created that is not needed. The second gateway can use the same FroniusClientSocket (the I/O instance). So only one FroniusClientSocket is needed for 2 FroniusGateways (one on ID 1 and the other on ID 240).
Source: IP-Symcon Private Message from robertg