u/CalendarSuitable3302

▲ 1 r/PLC

Can anybody point out my mistake?

I can't figure out why the programming acts like this.

It seems to be something to do with how the program reads from top to bottom, iv'e created multiple FB blocks for each function.

I use a SIM data block just to make simulation easier and i make every input set a "marker" instead of the actual output then i group together every marker to every output in the final FB output block.

Normally this system has worked fine for me except on previous assignments I didn't separate everything with different networks and function blocks. So i'm assuming the ladder programming is not what is the main issue unless i'm overlooking something.

I create the function blocks and assign the actual SIM inputs and outputs outside in main.

What's happening is

I can only start a part of the outputs only if the output block is higher in the networks section. now as soon as i try and get another function to work by dragging the output block to another place in the networks then nothing works.

Another Issue

I had also noticed that when i try and reset the step with a reset coil assigned to the same marker SIM.M1 then the output of that step wouldn't turn on.

I'm just hoping to get any answers and i know the programming is in Icelandic but if it's anything obvious that stands out I'd be happy to get a reply.

https://preview.redd.it/bur0j89vgzyg1.png?width=531&format=png&auto=webp&s=2b352a0ca70b75fe7e34c59cc5a997db66043119

https://preview.redd.it/bybowkdygzyg1.png?width=513&format=png&auto=webp&s=471b372dc9667408f51545a5ba025bc88dbbf7ad

https://preview.redd.it/banwuvw3hzyg1.png?width=492&format=png&auto=webp&s=607efecbe85cdf3c5a8f41098fa74a4be424d5b7

reddit.com
u/CalendarSuitable3302 — 11 days ago