_mmel

3 Data Memory into 1

4 posts in this topic

Good day to the members of Mr.PLC.

I need some help on the basic of moving 3 Data Memory into 1.

 

For example ;

D457 = day

D458 = month

D459 = Year

 

How do I move these into 1 data memory ? say, D460. What functions can I explore ?

  

Thank you in advance. 

 

Share this post


Link to post
Share on other sites

Use MOVD.

Share this post


Link to post
Share on other sites
On 04/11/2022 at 3:37 PM, BobB said:

Use MOVD.

Given that a D register is only 1 word / 2 bytes, you won't be able to move day/month/year into a single register.

1 nibble (4 bits) can only store the vales 0 - F

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