MELSEC MX-F — PLC-side settings
MELSEC MX-F — built-in Ethernet port (CPU module).
What you need
- Configuration tool: GX Works3
- Network: Align IP address, subnet mask, and default gateway with your network environment.
- After configuration: Power cycle the PLC to apply the new parameters.
Example values used in this guide
| Parameter | Example value | Notes |
|---|---|---|
| IP address | 192.168.250.100 |
Adapt to your network |
| TCP port | 1025 |
SLMP TCP |
| UDP port | 1035 |
SLMP UDP |
PLC-side settings
MX-F uses its own canonical library profile (melsec:mx-f) while keeping iQ-F-compatible SLMP connection settings.
Screen: Unit parameters
| Parameter | Setting |
|---|---|
| IP Address | 192.168.250.100 (example) |
| Subnet Mask | Match your network |
| Default Gateway | Match your network |
| Communication Data Code | Binary |
Screen: Connection settings
| Parameter | TCP | UDP |
|---|---|---|
| Communication Method | SLMP | SLMP |
| Protocol | TCP | UDP |
| Port Number | 1025 |
1035 |
| Remote Device IP Address | - | Enter the IP of the connecting PC |
| Keep-Alive | Enabled | Disabled |
DX/DY not valid for MX-F
Use X and Y instead of DX and DY with the MX-F profile.
Connecting with this library
| Parameter | Value |
|---|---|
| Canonical profile | melsec:mx-f |
| Port (TCP) | 1025 |
| Port (UDP) | 1035 |
Code example:
import asyncio
from slmp import SlmpConnectionOptions, open_and_connect, read_typed
async def main() -> None:
options = SlmpConnectionOptions(host="192.168.250.100", port=1025, plc_profile="melsec:mx-f")
async with await open_and_connect(options) as client:
value = await read_typed(client, "D100", "U")
print(f"D100={value}")
asyncio.run(main())
using PlcComm.Slmp;
var options = new SlmpConnectionOptions("192.168.250.100", SlmpPlcProfile.MxF) { Port = 1025 };
await using var client = await SlmpClientFactory.OpenAndConnectAsync(options);
var value = await client.ReadTypedAsync("D100", "U");
Console.WriteLine($"D100={value}");
Screenshots
Unit parameters screen for the built-in Ethernet port.
Connection settings screen for the first SLMP entry.
Connection settings screen for the second SLMP entry.