Skip to Content
On this page

Megmeet

Megmeet MC series PLC address read and write driver

Compatible devices and models

Device series / model examplesConnection requirements
Megmeet MC-series PLCsEnable the matching communication service and configure areas, station and register mapping. Address ranges depend on the CPU project.

Enable the MC Modbus service and read D0

Enable the matching Modbus slave service in the MC PLC project. Record Ethernet IP/port or the serial interface, station, baud rate and parity. Download and monitor D0 and an internal bit for the actual MC model.

  1. Direct Ethernet uses TCP client plus ModbusTcp. Serial uses ModbusRtu and matching serial settings. Transparent RTU-over-TCP uses TCP client plus ModbusRtu, not an MBAP frame. This entry does not use Modbus ASCII.
  2. Set Default station, default 1, to the slave address/Unit ID. s=2;D0 overrides it. DTU ID identifies inbound connections and is blank for direct links; device heartbeat applies to its TCP server DTU mode.
  3. Monitor a usable D0 as decimal 1234. Add a read-only scalar Int16 D0. Mapping already selects FC3 zero-based register 0; do not enter 40001 or add the offset again.
  4. Boolean M0 maps to zero-based coil 2000. X/Y suffixes are octal, so X10/Y10 mean logical point 8. X is read-only. WORD bits use D0.0 or R0.0.

FC1/FC2 limits count bits: default 1600, range 1–2000. FC3/FC4 count 16-bit registers: default 100, range 1–125. FC15 defaults to a maximum 1968 coils; FC16 defaults to a maximum 123 registers. Each setting controls its own operation; reduce it to the endpoint limit. Float/Int32 use two registers per element.

Default data order is CDAB; compare a known 32-bit project value. Set string byte length/encoding and use BCD only where the point map specifies it. Collection Configuration explains common timeout, retry and scheduling fields; these do not change frame format or X-area permissions.

Open the plugin

Enter “Development Configuration → Collection Configuration”, create a device and select “Megmeet” in “Device Plugin”.

Supported channels and data types

Channel typePre-configuration check
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.
TCP serverConfirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway.
Serial PortConfirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device.

Optional data types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String

This list describes types allowed by the plugin editor. Address width, arrays, string length and read/write restrictions still follow this page; it does not mean that every address supports every type.

Plugin properties

Protocol parameters

SettingDescription
Modbus frame formatDefault: ModbusTcp; fill in: drop-down selection. Modbus frame format; only supports Modbus TCP, RTU and RTU-over-TCP
Default station numberDefault: 1; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address.

Request packing

SettingDescription
FC1 Maximum number of read coil bitsDefault: 1600; Range: 1~2000; Fill in: text input. Set the maximum number of FC1 read coil bits used for a single read or write or group packet.
FC2 Maximum number of read discrete input bitsDefault: 1600; Range: 1~2000; Fill in: text input. Set the maximum number of read discrete input bits used by FC2 for a single read or write or group packet.
FC3 Maximum number of read holding registersDefault: 100; Range: 1~125; Fill in: text input. Set the maximum number of FC3 read holding registers used for a single read or write or group package.
FC4 Maximum number of read input registersDefault: 100; Range: 1~125; Fill in: text input. Set the maximum number of FC4 read input registers used for a single read and write or group package.
FC15 Maximum number of coil bits written in batchesDefault: 1968; Range: 1~1968; Fill in: text input. Set the maximum number of FC15 batch write coil bits used for a single read or write or group packet.
FC16 Maximum number of batch write registersDefault: 123; Range: 1~123; Fill in: text input. Set the maximum number of FC16 batch write registers used for a single read or write or group package.

Connection configuration

SettingDescription
DTU IDFill in: text input. Sets the identifier used to identify the current device connection through the DTU service.

Address rules

  • Megmeet MC80/MC100/MC200/MC280/MC200E:
  • Bit area: X0 (octal, read-only), Y0 (octal), M0, SM0, S0, T0, C0, D0.0, R0.0
  • WORD area: D0, SD0, Z0, R0, T0, C0
  • The address can use s=2;D0 to override the default station number. The X input area only allows reading.

Device debug

Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.

Megmeet: Read/Write

Megmeet: Messages

Functions

FunctionPurpose
Read and writeRead a confirmed point and write only to an approved test point.
MessagesView sent and received frames, protocol fields, and error details.

Verify the configuration

Monitor D0 online in the PLC engineering tool, compare its value with the gateway variable and confirm advancing sample times.

Troubleshooting

  • Match TCP, RTU or RTU-over-TCP to the endpoint. X/Y are octal; X is read-only.
  • The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.