Sign in to follow this  
Followers 0
d4rkm4n

GXWorks2 - K8M300?

5 posts in this topic

Hi,

I found this instruction on this ladder and wondering how it is calculated?

From the right, I understand they compare value from M0-M31 to M300-M331 because they started next with M32/M332.

I thought it K8 * 8bit = 64 but it is not. 

 

m300k8.PNG.df5cf75e3b5ffcbe8dbe698144c61

 

Thanks!

Share this post


Link to post
Share on other sites
1 hour ago, Goran Vuckovic said:

Nibbles not bits. K8 = 8 x 4 = 32

Thanks for your reply.

Why x 4? Any reason? Applied to D, X and Y as well?

Share this post


Link to post
Share on other sites

Yes, because it is written in the manual. K1 means 4 bits. And as you can see from your example, it is valid also for D registers. Of course also for X, Y and M.

2022-10-19 22_18_31-Programovaci_manual_serie_FX_GB.pdf (SECURED) - Adobe Acrobat.png

1 person likes this

Share this post


Link to post
Share on other sites
On 10/19/2022 at 3:51 AM, Lambir said:

Yes, because it is written in the manual. K1 means 4 bits. And as you can see from your example, it is valid also for D registers. Of course also for X, Y and M.

2022-10-19 22_18_31-Programovaci_manual_serie_FX_GB.pdf (SECURED) - Adobe Acrobat.png

Thank you very much.

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