OpenLogics / MewtocolNet

⭐ A Mewtocol protocol library to interface with Panasonic PLCs over TCP/Serial written in C#
https://na.industrial.panasonic.com/
GNU General Public License v3.0
26 stars 7 forks source link

RtsEnable should be set to true by Default #11

Closed shouidar closed 10 months ago

shouidar commented 10 months ago

Is your feature request related to a problem? Please describe. I have noticed during my tests with FP10SH, FP3SH and FP2 that if RtsEnable is not set to true in TryConnectAsyncSingle, All Serial read operations return an empty buffer (Zero bytes read)

Describe the solution you'd like Add RtsEnable = true, to the serial port initialisation.

serialClient = new SerialPort() { PortName = port, BaudRate = baud, DataBits = dbits, RtsEnable = true, Parity = par, StopBits = sbits, ReadTimeout = 100, Handshake = Handshake.None };

Sandoun commented 10 months ago

Thats likely an oversight by me, i did only have access to the FP-XH / FP-X series plcs during testing. Looking into this!