BASIC script on flexy 205, how do I get status on NIC, LAN, WAN, VPN, etc

I’m going to make a script on an eWON Flexy 205 and need some input.

The script should send status report from ewon, triggered by input DI2.

Status on NIC, LAN, WAN, VPN, etc. will be added to new tags in existing MODBUS IO server.

PLC obtains status from MODBUS IO server, visualizes in HMI and drives a white light.

DO1 is used to control a white light indicating whether or not VPN is active.

When I create the BASIC script on flexy 205, how do I extract status on NIC, LAN, WAN, VPN, etc. that can be added to new tags in existing MODBUS IO server?

The script should also turn on / off the WAN controlled via a key switch connected to DI1. Ideally, the power to the NIC should be turned on and off, okay? In that case, how to turn power on / off to nic from the script?

Topic closed due to inactivity.