FrankMV

How it works data type k4m400

4 posts in this topic

Hello!

Im new at GXworks but i have experience with other PLCs, i just cant found information about tags or data like k4m400 (constant + memory in one tag), Can someone explain how it works this kind of tag?

Thanks!!

Share this post


Link to post
Share on other sites

K4M400 takes 16 bits starting at M400 - M415 and combines them together as an integer value. So -[MOV D0 K4M400]- if D0 contained the value of 3 then M400 and M401 would trun TRUE and M402 - M415 would all be FALSE

Edited by Delbert

Share this post


Link to post
Share on other sites

I am sure you got it from the other posts but I like to share how I remember it.

 Take the 'K' value times 4. You are basically making a register out of the M coils.  

So,

K1M400 would be 4x1=4 M400-M403 

K2M400 would be 4x2=8 so M400-M407

K4M400 would be 4x4=16 M400-M415

K8M400 would be 8x4 so M400-M431

And so on. 

 

 

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