Posted 3 Jul 2019 (edited) Hi.. I'm new into PLC programming so I dont really know much how to program.. So hopefully there is someone out there that can help me with this or give me some ideas.. Here is the problem; I got 2 inputs signal, A & B.. from this 2 input signal, there will be variable combination of 4 inputs and it will produce different output let say in condition; 1. AAAB - Output 1 2. AABA - Output 2 3. AABB - Output 3 4. ABAA - Output 4 . . . n. BBBB - Output n I'm open to any suggestion and ideas for this.. Btw I'm using OMRON CP1H for this one.. Thank you Edited 3 Jul 2019 by Wan Amirulhanif Share this post Link to post Share on other sites
Posted 3 Jul 2019 Do you mean 1 switch give you 2 signal that on to A and off to B and you use it for combination with 4 switch? Share this post Link to post Share on other sites
Posted 3 Jul 2019 Looks like you just wrote your own logic. 4 lines of ladder each looking for a specific input condition, each controlling an output. Share this post Link to post Share on other sites
Posted 3 Jul 2019 Do you mean 1 switch give you 2 signal that on to A and off to B and you use it for combination with 4 switch? Yes.. somewhat like that.. My sensor will produce 2 input signals which is A and B depends on condition and I only use this one sensor.. So how can I make the combination from this sensor.. Tq Share this post Link to post Share on other sites
Posted 4 Jul 2019 For your condition you could create program by use each condition to communicate in serial sequence like image below. when you serial contact together it likes you use "AND" in programming language. Share this post Link to post Share on other sites