randy741985
Member
OP
Doug have you contributed to this thread in anyway? Other than negativity, I find that discouraging/irritating.
S7Guy said:... I used it to provide feedback to some HMIs to create the effect of radio buttons for a group of configuration options without needing to put the functionality in the HMIs. .
Yes.Doug-P said:Does anyone find it discouraging/irritating that randy741985 has not deigned to reply to this thread?
Bruce99 said:This morning I was editing a file on the SLC-5/05. It has no CMP instruction. Neither has the 5/04 5/03, the ML 1000 the ML 1100 and the ML 1500. Also under Allen Bradley, The PLC2-30 and the PLC2-15 also. Under Modicon the 584A through the 584C, the 484 and the 984-A120. ( I'm not sure about the 984-A120. we used SUB blocks and XOR for comparision). The Telemacanique DAC47jr has no CMP. Surprise surprise.. The IDEC shoe box PLC HAS the CMP instruction. There are others, I have only worked with these.
I was answering the last post on the first page by Serge. The CMP instruction is close in many PLCs. The instruction is used for comparision which I suggested the XOR can also be used for. The SUB block as well. I was responding to the poster's question as to what the XOR can be used for.rsdoran said:What are you considering a CMP? Different manufacturers have the same instruction with different names.
.
xor(a(xor(b(xor(a,b))) will swap the values in word a and b without using any additional memory locations.
Bruce99 said:Not all PLCs have a CMP instruction. The poster was asking the applications of XOR in programming, not what is natural or artificial in programming.
This morning I was editing a file on the SLC-5/05. It has no CMP instruction. Neither has the 5/04 5/03, the ML 1000 the ML 1100 and the ML 1500. Also under Allen Bradley, The PLC2-30 and the PLC2-15 also. Under Modicon the 584A through the 584C, the 484 and the 984-A120. ( I'm not sure about the 984-A120. we used SUB blocks and XOR for comparision). The Telemacanique DAC47jr has no CMP. Surprise surprise.. The IDEC shoe box PLC HAS the CMP instruction. There are others, I have only worked with these.