> For the complete documentation index, see [llms.txt](https://aj-labz.gitbook.io/aj-labz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aj-labz.gitbook.io/aj-labz/building-the-lab/industrial-control-systems-ics.md).

# Industrial Control Systems (ICS)

<figure><img src="/files/Qwipwou9x5RKpxtajMNM" alt=""><figcaption></figcaption></figure>

## Industrial Processes Simulation

The main PLC is the Micro850 (the one with the sticker), however, we plan to interoperate the Micrologix1100 as a producer of a tag or two in a process we have yet to think of...

<figure><img src="/files/-MBVAPYOCRW6hukx8umi" alt=""><figcaption></figcaption></figure>

No wiring diagram was created but the Black and Green buttons are NO and the Red button is NC.

### Process Logic

The processing logic on this PLC has changed many many times, but at the time of this photo, a simple four-rung ladder program was created to latch the light upon the push of the respective color button and unlatch by pushing the black.

<figure><img src="/files/-MBVBG-e671vAPNXfCfP" alt=""><figcaption></figcaption></figure>

As you can see we make use of Rockwell latching/unlatching (or set/reset in CCW) blocks. Since the red button is NC we need to XIO and the other two buttons are NO to we XIC. This can be done in 3 rungs if you are not a lazy copy and paster like us.

## Grid Simulation

For this project, we mainly only want to simulate an over-current condition on the "grid" and then make sure the data from many cycles before and after the trip are recorded and streamed to Splunk.

<figure><img src="/files/-MBWlasGkco1jJ4-XryF" alt=""><figcaption><p>Transformers not shown.</p></figcaption></figure>

To generate the currents necessary to simulate fault conditions on an overcurrent relay like the SEL-501 we used a step-down transformer with a ratio of 120 Volts: 12 Volts to take wall-socket AC voltage and decrease it to a safer level while at the same time boosting current (since a 10:1 voltage step-down ratio also yields a 10:1 step-*up* current ratio). We made sure to choose a transformer with its low-voltage ("secondary") winding rated for the amount of current I intended to pass through the SEL relay's inputs.\
REF: <https://www.youtube.com/watch?v=Sf7fwSlcDAg&t=200s>

<figure><img src="/files/8iSFjlr6jCzJRKfVyu1m" alt=""><figcaption></figcaption></figure>

### SEL Configuration

We will get that as soon as we can get a working serial to USB cable lol.

## Splunking with ICS data...

See the [SCADA Splunk](https://aj-labz.gitbook.io/aj-labz/scada-splunk) page
