Skip to Content
On this page

Panasonic MC

QnA-compatible MC 3E binary address read/write for Panasonic FP7 PLCs.

Compatible devices and models

Device series / model examplesConnection requirements
FP7 (CPU with a LAN interface)Configure the LAN connection for MC protocol, QnA-compatible 3E binary mode. This plugin uses a TCP client. Use the separate Mewtocol plugin for MEWTOCOL connections.

Enable the FP7 MC connection in FPWIN GR7

This entry uses QnA-compatible MC 3E binary on the FP7 built-in LAN, with a TCP client only. MEWTOCOL-COM/DAT, MC ASCII and FP0R serial ports use different services; use Panasonic Mewtocol for the corresponding ASCII protocol.

  1. In the matching FPWIN GR7 project, open Options → FP7 Configuration → Built-in ET-LAN. Set IPv4, mask and gateway in Basic communications information. The official picture shows 192.168.1.5; the gateway example below uses 192.168.1.24. Read back the actual PLC settings.

Official FPWIN GR7 built-in LAN and IPv4 configuration

  1. Choose an unused User connection information setting and enable it. Select MC protocol (QnA compatible 3E frame, binary), TCP/IP, Server connection and Open automatically.
  2. Set Home port number to the actual PLC listening port, illustrated here by an explicitly configured 5000. This is not a universal FP7 factory port. For a specific-partner server, also configure the gateway host IP; do not confuse Destination port with the PLC local port.
  3. Confirm/save and transfer the configuration using the site’s commissioning procedure. Read it back online. Connect the built-in LAN through the correct network and confirm that this CPU/firmware offers the MC option.

See sections 3.1/3.6 of the manufacturer WUME-FP7LAN manual . Its initial user-connection picture displays MEWTOCOL-COM; MC commissioning requires changing that mode to 3E binary.

Channel, device and all 12 parameters

Create a TCP client, targeting the configured PLC listener such as 192.168.1.24:5000. UDP, serial and TCP server channels are not offered by this entry.

Panasonic MC TCP client channel

Select Panasonic MC and associate the channel. Complete the PLC communication settings before enabling the device.

Panasonic MC device and channel

ParameterMeaning
Network numberDefault 0, the target MC network field. Not an IP suffix or station number; change only with actual routing requirements.
PLC numberDefault 255/0xFF, the target PLC routing field, not the CPU model or a Modbus station.
Module I/O numberDefault 1023/0x03FF, module/CPU route, not an X input number.
Module stationDefault 0; forms the route with the preceding fields. Initially preserve the direct-connection default group and inspect PLC end codes.
Maximum pack lengthDefault 256, a same-area read-span budget. WORD areas use 16-bit words; Int32/Float use 2. Relay reads use 16-bit boundaries. Sparse addresses also consume span; this is not a variable count or total network byte count.
Read/write timeoutDefault 3000 ms waiting for a response. Distinguish TCP failure, protocol mismatch and MC end codes before increasing it.
Frame delayDefault 0 ms before each request, separate from PLC scan and device interval.
Reverse string bytes in WORDsOff; swaps character pairs only when required by the stored string layout.
Data orderDefault DCBA; ABCD/BADC/CDAB are alternatives. Match the actual INT/DINT/REAL layout. Routing fields do not correct byte order.
Retry countDefault 3; invalid devices/commands require correction.
Read/write dutyDefault 3, minimum 1; one read after every n writes, not a percentage.
Write priorityOff; enabling permits writing to cancel reading. Leave off initially.

MC route, budget and runtime properties

MC runtime and conversion settings

There are no extra variable plugin properties. See acquisition configuration for common intervals, permissions and expressions.

DT, relays and address fields

Prepare independent DT100=1234 in FPWIN GR7. Add DT100, Int16, array length 1, read-only. Mitsubishi D100 syntax is not Panasonic DT100; implicit D90000/R900.0 area aliases are not provided.

DT100 Int16 scalar

Address fieldSelection
AreaX/Y/L/R/TS/CS/SM bit areas; DT/LD/TN/CN/SD WORD areas. Panasonic R means internal relay, despite a shared editor’s generic file-area label.
OffsetDecimal device number; X/Y/L/R use a decimal WORD number with a hexadecimal bit. The protocol’s three-byte limit is not the CPU’s allocated range.
Bit0–F for X/Y/L/R; decimal 0–15 for a Boolean inside a WORD, explicitly such as DT100.3. Larger values shown by a shared control are not accepted by this protocol.
Data orderOptional per-variable override of DCBA, according to the actual layout.
EncodingString contents, not a switch between MC ASCII and binary.
String byte lengthSpecify capacity: DT100; len=8 occupies 4 WORDs. Array length counts elements; two Int32 elements occupy 4 WORDs.
BCDOnly for confirmed BCD/Gray data, not ordinary binary INT values.
Variable string lengthA conversion option; it does not add a length header to DT memory.

Panasonic MC area, offset and bit editor

PLC object / gateway syntaxUnit and use
DT100 Int16/116-bit data register 100, MC device code 0xA8 and start 100.
DT100.3 Boolean/1WORD bit 3; DT100=8 should produce true. Boolean WORD access requires the bit suffix.
R10.A Boolean/1Internal relay WORD 10, bit 0xA; absolute bit 10×16+10=170.
X0.0, Y0.0, L0.0Input/output/link relay WORD.hex-bit syntax. Keep inputs read-only; program logic may overwrite outputs.
TS10, CS10 BooleanDecimal timer/counter contact numbers, with no extra bit suffix.
TN10, CN10 numericWORD areas; match the CPU object’s actual 16/32-bit width.
LD100, SD0, SM0LD/SD are WORDs and SM is a bit area; verify availability, permissions and firmware.

Parsing an address does not establish CPU support for every area. Byte, Decimal and String also require an actual compatible memory layout.

Compare values and end codes

Check the saved address, type and count before enabling the actual PLC device.

Panasonic MC saved variable list

Software-server configuration example

Load HSL Communication13.0.3 in Windows PowerShell with the actual DLL path. MelsecMcServer D100 uses MC device code 0xA8/start 100. It initializes little-endian integers 1234 and 5678 and disables external writes.

Add-Type -Path 'C:\Tools\HslCommunication\HslCommunication.dll' $server = [HslCommunication.Profinet.Melsec.MelsecMcServer]::new() $server.LocalAddress = [System.Net.IPAddress]::Loopback $prepared = $server.Write('D100', [byte[]](0xD2,0x04,0x2E,0x16)) if (-not $prepared.IsSuccess) { throw $prepared.Message } $server.EnableWrite = $false try { $server.ServerStart(15025) Read-Host 'Press Enter to stop' } finally { $server.ServerClose() $server.Dispose() }

Use TCP client 127.0.0.1:15025 and Panasonic MC. Keep network 0, PLC 255, target I/O 1023 and module station 0. Add DT100 / Int16 / length 1. The server API calls this D100; the Panasonic gateway address DT100 maps to the same MC word area.

Gateway TCP client for this software-server example

This HSL 13.0.3 MC 3E software server initializes 1234 at device code 0xA8/start 100. Enable the device and compare the cyclic DT100 value 1234 in Live Variables.

Panasonic MC cyclic value 1234 from a local software endpoint

On hardware, also compare the PLC watch value, quality and advancing timestamps. For C059 check binary 3E and command support; C051 is a point-count issue, C056 an address-range issue, and 4031 an area/access issue. If TCP connects without a valid response, first check that the PLC user connection is not still set to MEWTOCOL-COM.