CMP2A Time

Join Date
May 2008
Location
Dublin
Posts
19
Hello all,
Thanks for all your help last time.What i need to be able to do is move the plc clock time ( just hours and minutes ) to the
DM area. Could somebody please help.;)
 
More Info

Hello again,
The real problem is the plc clock is in the ar area.
It has days coupled with hours ect. What i would like to do is
have the clock time in a 4 digit hex number so i can use comparassions on it. The 4 digit hex number would be stored in the DM area

Please Help
 
Use the MOV or MOVD instruction. MOV will move a word, MOVD will move digits to where you want them. You can adjust which digits and where they are to go.

I never use the CPM2A - I only use CS1, CJ1 or CP1 - all have the same instruction set. I am not sure if the CPM2A has the ANDW instruction or not. If it has it can be used as a mask ANDW #FF00 AR??? DM2000 wil mask (block) to digits from th AR register and move the other 2 digits to the DM. Pretty easy.
 

Similar Topics

CMP2A clear memory How can I clear memory by removing battery & power down. I try for three hours but the program is still there. Please help
Replies
4
Views
2,220
CMP2A HIGH SPEED COUNTER HANG (5000) Please help me to restart this counter,the encoder is good but rotating clockwise will not increase the...
Replies
1
Views
2,504
Hello all, Im currently working on a project that involves the use of an Omron plc an a Siemens Tc35i gsm modem. So far i have set up the plc to...
Replies
8
Views
3,979
Hello! I'm a student. I need CPM2A Programming. Thank you for all your help. Regards. Apprentice
Replies
4
Views
3,036
Back
Top Bottom