Make the communication settings for the FP‑I4C unit, configure the HTTP client, and download the sample files for Control FPWIN Pro7.
This task includes the following steps:
Make the FP‑I4C communication settings
Use the PLC connection wizard to enable the COM3 USB interface for communication with the FP0H PLC and to configure a redirect from the TCP port to the USB interface.
Configure the HTTP client
To set up the FP‑I4C unit to function as an HTTP client, you need to enable the function and specify a memory area in the PLC for the DUT that handles the data exchange.
Download the sample files
Start HMWIN Studio to find out the IP address of the FP‑I4C unit.
Go to Board tab. and select the
In the device list of your DHCP network you can find the IP address of theFP‑I4C unit. If there are multiple devices in the list, compare the MAC address to the MAC address of the ETH0 connector to find the right device. The MAC address is printed on a label that can be found on the unit's housing.
Open your browser and enter the URL https://[IP address]/machine_config
. Replace [IP address]
with the IP address of your FP‑I4C unit (e.g. https://192.168.100.10/machine_config
).
Depending on your browser, an insecure connection warning may be displayed. Follow the instructions in your browser to accept the connection. You will then be forwarded to the Web interface of the FP‑I4C unit.
Log in with the default or your modified administrator credentials.
Select Application Settings to go to the application settings area.
Go to COM Interface and select Start wizard.
Select Simple mode and Continue.
Select COM3 USB and Continue.
Enter port number 9096 (or any other port between 1025 and 65535).
Select Finish.
All packages received on the specified port are now forwarded to the PLC via the serial interface.
Save your configuration.
Go to the HTTP Client page and enable the HTTP client function.
Specify free DT registers in the user area of the PLC that can be used to control data transmission.
The same address must be set in the corresponding DUT of the programming example.
The server IP address and the login parameters are set in the PLC. Do not enter any data in these fields in this example.
Do not enable Use HTTPS for now. If you want to establish a secure connection later, specify at least a list of CA root certificates. For more information, please refer to your HTTP server provider.
Save your configuration.
Download the FP‑I4C library for Control FPWIN Pro7 and the HTTP client example by clicking on the two Save to PC buttons.