Skip to content

Bool Read from R Register Always Returns False on Panasonic FP-XH PLC #19

@SeanJayZeng

Description

@SeanJayZeng

❗️Bool Read from R Register Always Returns False on Panasonic FP-XH PLC

🐞 Bug Description

When reading the boolean value of address R99A from a Panasonic FP-XH C30T/C40T/C60T PLC using the following code, the result is always false, even though the actual value in the PLC is true. The write operation is successful, and the value is confirmed as true in the PLC using Panasonic's software.


✅ Verified Behavior

// Write boolean true to R99A - write succeeds
var writeResult = tcpNet.Register.Bool("R99A")
    .WriteAsync(bool.Parse("true"))
    .GetAwaiter().GetResult();
// writeResult.IsSuccess == true

// Read boolean from R99A - returns false, but actual PLC value is true
var data3 = Mewtocol.Ethernet(device.Ip, device.Port)
    .Build()
    .Register.Bool("R99A")
    .ReadAsync()
    .GetAwaiter()
    .GetResult();

// data3 == false, but actual bit in PLC is true

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions