Increment subroutine?

Ah.. But mine also does all the animation including instructions on what the operator is to do as well as the Valid combinations auto reset, TBH, do not need the FB, just code it, it would save processing the passes to the FB.
 
Ah.. ...as well as the Valid combinations auto reset ...

Oh YEAH?

Well MINE enforces only the combinations 1, 1-2, 1-2-3, or 1-2-3-4 (and empty as well, I think, which is silly).

Also, your combinations rung excludes the 2-only and 3-only cases. It could also be significantly simplified from your brute-force approach; maybe that would make a good post-Labor Day De Morgan's Theorem puzzler.

So THERE!

:ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO: :ROFLMAO:
 
Dr Bit Boy you mean Labour day... Just kidding that the Canadian/British spelling.



Both of you thanks for your replies I have been reading them and will implement something in next week or so.


Right now I am pulled of that job working on something else but I will post when I get back working on it again.
 
Lol, I did say in a previous post that the combinations were only a sample with that first rung, can add or take away any that are required/not required and the HMI tells you it's wrong or correct.:rolleyes:
 

Similar Topics

Hi, Am I being daft (again)? I want to increment a tag (Integer) by 1 each time a button on the HMI is pressed. Before the button press, the...
Replies
22
Views
2,367
Hi, I have a stand alone inspection unit with no PLC but I can send 24v input signals to the machine PLC to show a good read and a bad read when...
Replies
9
Views
779
The attached pdf shows a CPT instruction that should calculate the value of tag Cell_Charge_Percent_Remaining[1]. I've included the relevant...
Replies
4
Views
1,529
I have a considerable amount of modbus register data tags from a plc already setup in crimson. I have them setup in alphabetical order with...
Replies
4
Views
2,095
I am using the Library Designer tool to create PLC code. One of the standard routines that our company uses for simulation has individual XICs...
Replies
0
Views
1,513
Back
Top Bottom