Skip to Content
On this page

Panasonic Mewtocol

Panasonic Mewtocol PLC address reading and writing and status diagnostic driver

Compatible devices and models

Device series / model examplesConnection requirements
FP7 (interface configured for MEWTOCOL-COM)Use MEWTOCOL-COM ASCII slave communication with matching station and interface settings. MEWTOCOL-DAT, MEWTOCOL7-COM and MC connections require their corresponding protocols.
FP0H (interface exposing MEWTOCOL-COM)Enable MEWTOCOL-COM with matching station, areas and transport. MEWTOCOL-7 and MC services use their corresponding protocols.
FP0R (tool or communication port exposing MEWTOCOL-COM)Use MEWTOCOL-COM through a tool port, RS-232C/RS-485 communication port or transparent link actually provided by the CPU. Match station, serial settings and FP0R address ranges. Port availability varies by CPU; built-in Ethernet must not be assumed.

Configure FP0R serial or FP7 Ethernet first

This entry sends MEWTOCOL-COM ASCII, not MEWTOCOL7-COM/DAT, Modbus or MC. TCP support does not give an FP0R a built-in Ethernet interface; distinguish its tool port, COM port and transparent adapters.

  1. Open Options → PLC Configuration → Tool Port or COM Port and read current settings. The gateway issues commands; the PLC responds through Computer Link without a PLC polling program.
  2. Set No.410 Unit No to a unique 1–99 station, and No.412 Comm. Mode to Computer Link, not general-purpose communication or PLC Link.
  3. Match No.413 data bits/parity/stop bits and No.415 baud rate. The official tool-port picture uses 9600, 8 bits, Odd, 1 stop bit. The tool port is RS232C; RS485 COM hardware has different model/switch requirements, including 19200/115200 rates in this manual.

Official FP0R Computer Link, station and 9600 8O1 configuration

  1. Wire the actual port according to the CPU pin diagram; RS232C and RS485 require the proper converter. Computer Link fixes the CR terminator/header behavior. Save/transfer system-register settings and read them back.

See sections 7.3 and 7.4.3–7.4.5 of the official FP0R Hardware Manual . A multidrop bus needs distinct Unit No values; EE cannot identify individual stations.

FP7 user connection in FPWIN GR7

Open Options → FP7 Configuration → Built-in ET-LAN, configure IPv4/mask, then enable a user connection using MEWTOCOL-COM, TCP/IP, Server connection, Open automatically, and the actual Home port number. The official picture’s 60001 is its example; match the gateway endpoint to the actual PLC listener.

Official FP7 MEWTOCOL-COM TCP server and local port

This entry sends ordinary MEWTOCOL-COM frames. “Connect with FP2 ET-LAN” changes the LAN encapsulation and must not be enabled without checking compatibility. Refer to sections 3.6/8.3 of WUME-FP7LAN , transfer and read back the project. FP0H uses its own supported interface and manual.

Gateway channel, device and all 13 parameters

The serial example matches the FP0R tool port: COM1, 9600, 8, Odd, 1. Transparent TCP transports the same ASCII frame; FP7 native TCP uses a client channel. TCP server applies only when the actual peer initiates the connection. UDP is not supported.

Mewtocol9600 8O1 SerialPort channel

Select Panasonic Mewtocol and associate the channel. Set station 1 to match the PLC, and complete its communication settings before enabling the device.

Mewtocol device and channel association

ParameterMeaning and limitations
PLC stationDefault 238/0xEE. The field accepts a decimal Byte but sends two hexadecimal characters. Enter 1 for wire 01. A PLC station whose wire digits are 10 currently requires 16; entering 10 sends 0A. Confirm multidigit stations from actual messages. 238 is not a real multidrop station.
Maximum bit packDefault 400, valid 1–400 bits. T/C scattered commands separately use up to 8 points per frame. Not WORDs.
Maximum pack lengthDefault 500, valid 1–500 WORDs. Reads over 27 WORDs use expanded< frames, which the CPU must support. Reduce to 27 or below for an incompatible old CPU. A single cyclic variable exceeding the budget is rejected.
DTU IDEmpty; only for identifying DTU connections in TCP server mode.
HeartbeatEmpty; a nonempty TCP server default-DTU value overrides the channel heartbeat, not a protocol command.
Hex heartbeatOff matches UTF-8; on matches hexadecimal heartbeat bytes.
TimeoutDefault 3000 ms covering serial transfer, turnaround and response. Does not fix local parameter errors.
Frame delayDefault 0 ms before a request, not the station or acquisition interval.
Reverse string bytes in WORDsOff; swap character pairs only for a confirmed opposite source layout.
Data orderDefault DCBA; also ABCD/BADC/CDAB. Verify known 16-bit and then DINT/REAL values.
Retry countDefault 3; correct protocol mode, station encoding and address first.
Read/write dutyDefault 3, minimum 1; schedule one read after n writes.
Write priorityOff; enabling permits writes to cancel reads. Leave off initially.

Mewtocol station, bit/WORD budgets and DTU parameters

Mewtocol runtime and conversion settings

There are no extra variable plugin properties. Common intervals, permissions and expressions are in acquisition configuration.

Variables, contacts and timer values

Prepare independent DT100=1234 in the PLC watch table. Add DT100, Int16, array length 1, read-only. Array length must exceed 0. String requires a byte capacity: DT100; len=8 occupies 4 WORDs; array length does not replacelen=.

Mewtocol DT100 scalar variable

Address fieldRule
AreaBoolean supports X/Y/R/L/T/C. WORD access additionally supports DT/LD/F/K/S/IX/IY/ID. R means Panasonic internal relay, despite the shared generic area label.
OffsetDecimal WORD/contact number. X/Y/R/L combine a decimal WORD with a hexadecimal bit; R10.A is absolute bit 170.
BitRelay bit 0–F. A relay WORD view must align at.0, such as R10.0 UInt16. DT100.3 is not Boolean syntax in this entry.
Data orderOptional per-variable override of DCBA.
EncodingString contents, not the ASCII wire protocol.
String byte lengthRequiredlen= for String; each WORD is 2 bytes. Consider padding/adjacent data for odd-byte writes.
BCDOnly for confirmed BCD/Gray values.
Variable string lengthMatch the stored layout; no automatic DT length header.

Mewtocol native address and conversion editor

PLC object / addressActual command and use
DT100 Int16/1RD data area, decimal WORD 100; 1234 is little-endian D2 04.
R10.A Boolean/1RCS contact, WORD 10 and hex bit A.
R10.0 UInt16/1RCC relay WORD view at a 16-bit boundary; R10.A is not a WORD start.
X0.0, Y0.0, L0.0Same WORD.hex-bit syntax; keep physical inputs read-only.
T100, C100 BooleanContact state; decimal contact number, current wire field limit 999. CPU availability may be smaller.
T100, C100 or S100 numericCurrent entry sends RS set-value commands, not elapsed values. T/C prefixes do not create separate numeric command areas here.
K100 numericRK elapsed/current-value area; distinguish from S100 preset data and match the PLC timer/counter allocation.
LD100, F100, IX0/IY0/ID0Link/file/index commands with CPU-specific availability and widths.

RS means set value and RK elapsed value in FP0R manual 15.5. Current wire-field limits are 99999 for DT/LD/F, 999999999 for index areas, and 9999 for other WORD areas; these are not CPU memory capacities. Int32/Float use 2 WORDs; Double/Int64 use 4. WORD writes require complete even-byte payloads; normal/expanded single-frame business limits are 98/2028 bytes. Non-scalar relay writes also require 16-bit alignment. Start read-only.

Cyclic acquisition and protocol debugging

Mewtocol saved variable list

Software-server configuration example

Load HSL Communication13.0.3 in Windows PowerShell with the actual DLL path. Set PanasonicMewtocolServer station to 1 and initialize API address D100 with little-endian 1234 and 5678. Gateway addresses are DT100 and DT101.

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

Use TCP client 127.0.0.1:15024, Panasonic Mewtocol, PLC station 1, and DT100 / Int16 / length 1, DCBA. After saving, check cyclic collection and the protocol-debug read separately as described below.

Gateway TCP client for this software-server example

Gateway 2.4.5 cyclic-acquisition limitation: DT100 Int16/1 reports Panasonic PLC address unit and variable data type are inconsistent. before sending the business request. Changing the variable to Byte, increasing timeout or changing the PLC station does not resolve this local error.

Mewtocol cyclic local address/type failure

Protocol debugging currently offers Read/write and Operations → Read PLC model. On an authorized test device enable Allow method invocation, then select DT100, Int16, length 1 and inspect the target/arguments in the confirmation. This HSL 13.0.3 MEWTOCOL software server initializes the address to 1234; compare that value in the read-result area. Use this one-shot read to check the connection when the cyclic error above occurs.

Mewtocol debug read 1234 from a local software endpoint

For no response check Computer Link, serial framing and station characters. A ! response is a PLC error; consult its error table. Check adapters for added headers or changed CR termination when BCC/framing fails. For cyclic acquisition, use another protocol supported by the CPU until this version issue is corrected.