SLMP (Mitsubishi MELSEC)
SLMP (Seamless Message Protocol, also known as MELSEC Communication Protocol / MC protocol) is used by Mitsubishi Electric MELSEC PLCs such as the iQ-R, iQ-F, Q and L series.
The driver communicates using binary 3E frames over TCP.
This initial version is read-only and supports reading word devices (D, W and R).
(Supported by Plc4J Only)
Connection String Options
Name |
Type |
Default Value |
Required |
Description |
Name |
SLMP (MELSEC) 3E |
|||
Code |
|
|||
Maven Dependency |
<dependency> <groupId>org.apache.plc4x</groupId> <artifactId>plc4j-driver-slmp</artifactId> <version>pre-release</version> </dependency> |
|||
Default Transport |
|
|||
Supported Transports |
|
|||
Config options: |
||||
|
INT |
0 |
SLMP monitoring timer written into each 3E request frame (0 = wait infinitely). |
|
|
INT |
5000 |
Client-side timeout in milliseconds awaiting a response. |
|
Transport config options: |
||||
tcp |
||||
|
INT |
5000 |
||
|
INT |
0 |
||
|
INT |
0 |
||
|
BOOLEAN |
true |
||
|
BOOLEAN |
false |
||
|
INT |
81920 |
||
|
INT |
81920 |
||
|
STRING |
|||
|
INT |
0 |
||
Individual Resource Address Format
Connection String
SLMP has the following connection string format:
slmp:{transport}://{ip-address}:{port}?{options}
An example connection string would look like:
slmp:tcp://192.168.0.10:5007
Note the transport, port and option fields are optional.
General Format
In general all SLMP addresses have this format:
{device}{address}:{data-type}[{quantity}]
If the data-type part is omitted, it defaults to WORD.
If the quantity part is omitted, the default of 1 is assumed.
Examples:
-
D350(one word from data register 350) -
D350:DINT(one 32-bit integer, occupying two words) -
R200:REAL[4](four floats from file register 200) -
W0x1A:WORD[10](ten words from link register 0x1A)
Devices
The following word devices are supported:
-
D(data register, decimal address) -
R(file register, decimal address) -
W(link register, hexadecimal address; an optional0xprefix is accepted)
The 0x prefix is only valid for hexadecimally addressed devices.
A single read request may cover at most 960 words (a conservative single-frame ceiling); larger requests are rejected instead of being split.