Ah the funny thing is I am turning everything into Arrays anyways for other purposes! Reading through this there were a couple of new things I haven't seen, I looked them up and learned some new functions. I will probably end up doing something like the first example you gave. Thank you so much for your time and detailing. I am learning a lot from all the help!
I am sure you are busy, and I thanks for your help and your time good sir.
oh man i messed up, I edited my mistake
Maybe there was to much garbage, the variables being INT. IF iVar1 = iVar10 OR iVar1 = iVar10 OR iVar1 = iVar10 OR iVar1 = iVar10 THEN DoTask := TRUE; END_IF EDIT!!!! IF iVar1 = iVar10 OR iVar2 = iVar10 OR iVar3 = iVar10 OR iVar4 = iVar10 THEN DoTask := TRUE; END_IF
Thank you kindly for your time I, I like the method you prescribe! But it sounds like its not possible to compare multiple variables collectively against one.
Maybe there was to much garbage, the variables being INT. IF iVar1 = iVar10 OR iVar1 = iVar10 OR iVar1 = iVar10 OR iVar1 = iVar10 THEN DoTask := TRUE; END_IF
Much cleaner thank you for the tip!
Example of what I am doing. Can this be simplified, especially if I am using more variables. IF PVL.dut_PonyGroupSettings.ProcessVariable_ci = GVL.c_ai_DischargePressure OR PVL.dut_MidGroupSettings.ProcessVariable_ci = GVL.c_ai_DischargePressure OR PVL.dut_MainGroupSettings.ProcessVariable_ci = GVL.c_ai_DischargePressure OR PVL.dut_HFGroupSettings.ProcessVariable_ci = GVL.c_ai_DischargePressure THEN DoTask := TRUE; END_IF
Need to see the code. Some things to keep in mind. You must start the the program program even in simulation mode. The ladder must be in some way tied into the tasks, for example the ladder POU could be directly tied to a task on an interval, or it could be called from another POU that is on a interval task.
I am new to codesys, and later to the conversation. I am currently recreating a large dynamic program using a ABB PLC that uses Automation Builder (which is just ABB's usage of Codesys). In the ABB PLC documentation I saw that the retention is being held by a super cap that would last about 16 days. This would simply not work for my application. I am utilizing the recipe manager and the external micro sd card to retain all of the settings and values daily for the system. So far it is working well...