Sign in to follow this  
Followers 0
ButtonBasherNo445533

GX Works 3 (R04CPU) Device Memory

4 posts in this topic

Hello, 

GX Works 3 / R04CPU.

I'm using the Device Memory so that I can link the HMI to my PLC.

I've set aside some memory, in this case D3260, to be used as a Real (32 bits data, Float single precision) to be set by the HMI (operator adjustable setting) and read from the PLC.

I thought I'd move D3260 into a local label for readability/testing purposes, and it says I cannot move an Int into a Real - which is fair enough, but, how/where do I set D3260 as a real?

Do I use some Functions to take D3260 + D3261 and make it to a real, or define the data area as a real somewhere...

 

Dumb question I know, I'm new to GX Works 3.

Thanks very muchly

 

 

Edited by ButtonBasherNo445533
1 person likes this

Share this post


Link to post
Share on other sites

When you look at the HMI/GOT application, make sure that you have the input type set to "Real(32bit)". This setting is just to the right of the device setting (in your case D3260), and it's labeled "Data Type".

Hope this helps!

1 person likes this

Share this post


Link to post
Share on other sites

Hi

You need to define D3260 (+1) as a Global label first.

Then define a local label.

And use the EMOV function to transfer the OP value to the local value.

 

 

Define global label.png

Define local label.png

Program the data transfer.png

1 person likes this

Share this post


Link to post
Share on other sites

Thank you!

 

Sorry for not responding I didn't get a notification that there was a reply!

 

Much appreciated

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
Sign in to follow this  
Followers 0