MC Protocol(MELSEC Communication Protocol) implementation by Python
Project description
pymcprotocol
MC Protocol(MELSEC Communication Protocol) implementation by Python
installation
pip install pymcprotocol
Protocol type
Now, pymcprotocol supports mc only mcprotocol 3E binary type.
In the future, I`m going to support 4E type. (And if possible, 1C~4C type also.)]
How to use mc protocol
1. Set up PLC
First, you need to set upopen your PLC port to communicate by mcprotocol in Gxworks2 or Gxworks3.
- Open port you want to communicate.
- Select communication Data Code Binary Code
- If you would like to write in to PLC, you also have to check Enable online change
2. Connect by Python
from pymcprotocol import Type3E
pyplc = Type3E(ip="192.168.1.2", port=1025)
3. Communicate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymcprotocol-0.1.0.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for pymcprotocol-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438818e7b4c8991860c34596402e420ade143feeb50ebbfe44fca65d9320fa30 |
|
MD5 | 0b1cfd6e410b86d00dc3dde0395d3962 |
|
BLAKE2b-256 | bdb1e12b4451fcb22ef29617663bba162c42793405d573796b673799a8564a1e |