Posted 24 May 2016 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, yolo.cxp Share this post Link to post Share on other sites
Posted 24 May 2016 (edited) 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 24 May 2016 by pfort 2 people like this Share this post Link to post Share on other sites
Posted 24 May 2016 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
Posted 24 May 2016 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
Posted 27 May 2016 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. Share this post Link to post Share on other sites