Posted 7 Jul 2020 I would like to compare the content of 2 registers of D memory on my CJ1M PLC. I'm trying instruction = (equal) and D30 and D50 memory registers to compare data and activate an output, but I don't understand why it shows the same direction (&98 on the image). Share this post Link to post Share on other sites
Posted 7 Jul 2020 You are not monitoring in the Memory (inset) window. In the third row of icons from the top, click on the icon all the way to the right. This will turn on monitoring in that window. gtsuport Share this post Link to post Share on other sites
Posted 7 Jul 2020 I answered part of the question in the other post. I missed that you are not Monitoring, as gtsupport has pointed out. Also, the '=' instruction will only compare a single (16 bit) register. If you want to compare an entire String, then you'll need to the '=$'. This will compare consecutive registers up to the end of the String. Compare up to the first null character (00). Share this post Link to post Share on other sites
Posted 8 Jul 2020 Thank you very much for your answers, it is working now! Share this post Link to post Share on other sites