Skip to content

Memory Area & Register Address example #1

@amacierzynski

Description

@amacierzynski

Hello!

Just wanted to use your library as a part of my project. Great work btw!

One question is that I simply have no idea how to use it with PLC. I am not PLC guy at all, just Java Programmer.

For example I have three addresses: D01194, H0003.03 & CIO1003.10

As I understood you are sending this as a part of msg frame.
Now in the FinsConnection class I have readRegister methods:

public int readRegister(int memoryArea, int registerAddress, int bits)
&
public int readRegister(int memoryArea, int registerAddress)

From the PLC doc, I found that D, H or CIO are PC Communication Areas. It is memoryArea in the lib?
Should I convert those to HEX, so for example:

D -> 0x000044
H -> 0x000068
CIO -> 0x63696f ?

Then I assume that number is just a register with a spcific bit after dot, right?

Would be great to have simple explanation!

Best Regards,
Adam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions