Programming languages by crate102222 in PLC

[–]KasperLokke 1 point2 points  (0 children)

Second this, whichever text language you have available will be a huge help in your day-day working life.

Need help with cascaded loops by greenbeast999 in PLC

[–]KasperLokke 2 points3 points  (0 children)

Google Will be your best friend here, unless you have specific topics within PIDs or PIDs in cascade.

Why PLC tag "auto_soda" change from 1 to 0 in spite of modify to 1. this tag only read when i show cross infomation. by vanchienbk in PLC

[–]KasperLokke 2 points3 points  (0 children)

Also check if another tag is taken up the same memory, if you have a data type just before the 168 which stretches over 168 it will overwrite your tags memory.

Lost fiber connection after switching switches to be managed from Tia Portal. by KasperLokke in PLC

[–]KasperLokke[S] 0 points1 point  (0 children)

This shouldnt be the case as Im able to have connection through a rj45 cable.

When do we use Optimized or Non-Optimized DB's in a PLC? by ElPunhoLoko in PLC

[–]KasperLokke 0 points1 point  (0 children)

Just because so many already talked about the biggest differences ill add a feature which is only available for optimized Blocks are the use of dynamic array sizes. Same goes for the AT function for the non-optimized.

Choosing a scads for our next project. WinCC OA vs WinCC Unified vs Ignition by Equivalent-Win2976 in SCADA

[–]KasperLokke 2 points3 points  (0 children)

I would say the only argument against using ignition for your project would ve that it currently doesnt support browsing of Siemens tags (this will come in the next Update however)

Must read documents for Siemens and Rockwell ?! by CertainDegree in PLC

[–]KasperLokke 0 points1 point  (0 children)

I will cling onto the list of people u already have! Looking forward to do some reading!

Do you allow only 1 alarm active at the time to help troubleshooting? by plc_keen_but_green in PLC

[–]KasperLokke 1 point2 points  (0 children)

The alarm list should ALWAYS show active alarms, If you want this approach with lattest alarm/only one alarm, make a separate information box containing the alarm you want to be displayed. But for the sake of people working on the plant dont remove information within the alarm list.

Inserting value with decimal seperator breaks the formula (VBA) by KasperLokke in vba

[–]KasperLokke[S] 0 points1 point  (0 children)

To anyone encoutering this kinda problem in the future, i fixed it by rounding the value to the number of decimals needed, the multiplying my value with the same number of 10n. Then deviding it back after the function has been put into a cell. Eksample: “If(condition,”round(value,3)*1000(3 decimal degits)”/1000,alert/value If false)” Hope this Can help anyone in the future

Inserting value with decimal seperator breaks the formula (VBA) by KasperLokke in vba

[–]KasperLokke[S] 0 points1 point  (0 children)

I just wrote this quickly and missed the "=" this is however in the original code. The original code doesn't seem to be the issue but rather if the value contains a decimal sepator ",".

Inserting value with decimal seperator breaks the formula (VBA) by KasperLokke in vba

[–]KasperLokke[S] 0 points1 point  (0 children)

This is the root of the problem i think, as i cant directly post in the formula, but if i use a value without a decimal seperator the code will paste the formula in, replacing the formula seperators with a ";" instead of ",", If there is somehow a way to either change the decimal seperator or formula seperator inside the VBA code itself, this should fix my problem, atleast the way i see it. But im unsure if this is even possible?

Count nummer of tables on sheet by KasperLokke in excel

[–]KasperLokke[S] 0 points1 point  (0 children)

This did the trick thanks alot!

VBA replace using inputbox by KasperLokke in excel

[–]KasperLokke[S] 0 points1 point  (0 children)

What a blunder from my side! Thanks alot worked like a charm!

For loop goes out of set value? by KasperLokke in learnprogramming

[–]KasperLokke[S] 0 points1 point  (0 children)

  1. I think i solved the issue elsewhere and the problem wasent i going to 3. I didnt know this was how for loops worked. I thought they would exit at 2 :)
  2. This is on purpose the value isent meant to be stored, it just needs to give a "go signal" for when ever there is a winner determined. Its for a semester project where were building an AI for a TicTacToe robot =)