Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
One of the most powerful capabilities of programmable logic controllers (PLCs) that conform to the IEC 61131-3 standard is the functionality that allows application engineers to create function blocks ...