5 posts in this topic

hello guys,

When i simulate the programme,using CJ1M CPU21, and i set contact 200.01 and 0.01 on, the KEEP doesn't change the bit of adress 200.01 to 1. The same thing happens to the KEEP below.
Can you give us a reason for this problem and show us the way.

 

Best reggards,

 

Sem Título.png

yolo.cxp

Share this post


Link to post
Share on other sites

Nothing to do with the KEEP instruction.

I think that it's because your section with subroutines (Section called "encoder") should be at the end, just before the "END" section.

Edited by pfort
2 people like this

Share this post


Link to post
Share on other sites

THANK YOU SO MUCH! You really saved us. Not even the teacher was able to clarify that. Thank you again 

Share this post


Link to post
Share on other sites

Also use the address reference window to see if you are using the Keep addresses as coils in your program elsewhere.

Share this post


Link to post
Share on other sites

yes code after the SBN/RET "sub entry" instructions will be ignored. Now you can have a SBN/RET one after the next but code not in a sub entry will be ignored. See the instruction reference manual.

cxp0.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