khoi

omron long word

2 posts in this topic

hi everyone,

I have a question on long word in PLC Omron. For example, D0=#1111, D1=#2222, D2=#3333.

What is D1 value ( long word). 

Is it #22223333 or #22221111 or #11112222 ?

Thanks for your reply.

Share this post


Link to post
Share on other sites

Word is 16 bit
DWord is 32 bit
LWord is 64 bit

D1 >> Word then is >>  D1
D1 >> DWord then is >> D2 D1
D1 >> LWord then is >> D4 D3 D2 D1

The D1 designation is least significant memory area

See attached image for memory layout

Memory.JPG

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