Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

PLC training

Wed July 28th 2021

PLC is mainly ladder programming.

You can use some strict programming if need be.

Part 1: Hardware Configuration

Unit editor is for software configuration (parameters)

Confiuration must be the same as hardware.

Ethernet unit most important thing is the IP address.

Ethernet IP setting tab is the main one you should tweak

Things to look up on

EDS file

I/O link

Part 2: Software PLC programming

Related Manual, very important.

Help > Manual

2-6, input and output terminal details


ADDRESSES

Binary relays

Headers: CR, MR, CR

R000, channel, followed by 16 bits of data

R015

R100

R101

R115

Word relays

VERIFY WITH PLC CONFIGURATION

Before overwriting configuration, it is highly recommended to verify first.

LADDER PROGRAMMING (traditional way)

Cell-by-cell
In KV, max 10 column.

Left side is high voltage side, right side is low voltage side

Current flows from left to right.

Input at left side, output at right side.

You connect cell components with RUNGS.

Script-based programming (limited to basic functions only)

The script has its own kind of programming language

Components:

RES

ZRES

It is a combination of ladders + scripts, so variables get re-assigned on both.

Syntax for if else

IF …. THEN

ELSE IF ….. THEN


END IF

Logical operations:

AND, OR

For loop:

FOR DM100=0 TO 9 STEP 1

NEXT

WHILE,

DO,

SELECT CASE

‘ # this is comment !!!!

DM_.L

.S, .L these are for signed/unsigned integers

.L signed integer 32 bit.

Registration monitor window is the debugger


Modules in PLC

You might also like