Gville

READ_VAR Output

2 posts in this topic

I am working on a project with two M340 PLCs and need to read a Real type data point into my PLC from the other. I have setup my READ_VAR block to do this, but I'm having trouble understanding the form of the output. I get that a Real type takes two registers and that each register will be read into a part of an Int Array through the READ_VAR block, but how can I now convert it back into a Real so I can use it in my logic? This is just a fundamental thing that I can't get my head around, maybe I've already read the answer somewhere online but it isn't making sense to me.

This also needs to read an updated value every second because it is being used for an interlock. Do I use a TP to enable the READ_VAR this way?

P2P Comms.PNG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now