Skip to content

ReadReal example does not read correct FPOS value #26

@birbs1968

Description

@birbs1968

Hi, I was trying to help a colleague read the FPOS using your very useful ACSpy.

The function given in the read real example did not work for him ( at least on ACS 6.72 or ACS 7.0.0 ).
print(acsc.readReal(hc, acsc.NONE, "FPOS(0)"))
This returns 0.00 regardless of the value for FPOS(0).
I tried this instead , which does work :
print( acsc.readReal(hc, acsc.NONE, "FPOS", 0, 0 ) )
Also might be worth mentioning somewhere that on some PCs using openCommEthernetTCP requires an '.encode()' on the
IP address, but on others using .encode() does not work. This might be across different Python versions , not sure.

Hope this helps, my colleague uses your library quite a bit ( I use the C++ stuff from ACS myself so knew how to help him ).
Thanks.

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