Skip to main content

pypanasonic

Table of Contents

Install

This lib contains panasonic PLC use mewtocol via serial port.
pip install regex
pip install pypanasonic
pip install pyserial

Usage

Here is an example of using it.

import serial
from pypansonic import mewtocol

#Change port number fits your desired port, here is com3
ser = serial.Serial(port="COM3",
                    baudrate=9600,
                    bytesize=serial.EIGHTBITS,
                    parity=serial.PARITY_ODD,
                    stopbits=serial.STOPBITS_ONE,
                    xonxoff = True,
                    timeout=0.5)
if ser.is_open:
    print("\n"+ser.name)

    #Write the function here:
    write_len = ser.write(plcVer().encode('ascii'))
    write_len = ser.write(switchSingleOn('R0001'))

    while True:
        com_message=ser.readline()
        if com_message:
            print("Port Open sucesses, message received is: ")
            print(com_message.decode('ascii'))
    ser.close()
else:
    print("Fail of open ports")

License

MIT

pypanasonic is distributed under the terms of the MIT license.

Release files for pypanasonic 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypanasonic 0.0.8
File Size Uploaded
pypanasonic-0.0.8.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypanasonic 0.0.8
File Interpreter ABI Platform
pypanasonic-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / pypanasonic-0.0.8.tar.gz

Download URL pypanasonic-0.0.8.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12b5f536a983a4c2e6a58fde89248cb6583f0d5f47dbf81d8ba353dbff86cc00
BLAKE2b-256 checksum
How to use checksums
c8560b42c2fa33772b37727d331eecb5d8fcebd72cce0198812cdc871c176ebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release files / pypanasonic-0.0.8-py3-none-any.whl

Download URL pypanasonic-0.0.8-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fffa7d9ae8c9df264ba4651de5fed4bf72ecc8141f3790a1ff8b3468b22411e6
BLAKE2b-256 checksum
How to use checksums
e86d37adab7dff0d87ca4cb00dfd0c5972ac82b27fd0bdd643cf9ba05605ff7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page