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

GetMetadataAsync fails with FP10SH, FP02-C and FP3SH #13

Closed shouidar closed 10 months ago

shouidar commented 10 months ago

Describe the bug While connecting to FP10SH, FP3SH or FP2 the ProgramCapacity returned by the RT command is always zero. Thus the GetMetadataAsync will always throw an exception causing the programm to crash.

To Reproduce Use the BasicRegisterReadWrite Example to connect to on of the plcs above using the serial port.

Expected behavior Expect connection to work with these models

Screenshots programcapacity0

shouidar commented 10 months ago

Workarround is to set AlwaysGetMetaData to false during initialization:

`.WithInterfaceSettings( ifs => { ifs.AlwaysGetMetadata = false;

    })`
Sandoun commented 10 months ago

This is a fpwinpro feature and just uses the normal DT area, so maybe this function should be disabled by default.. Thx for the input!