Tag Archives: Basic PLC/HMI examples

PLC programming tutorial – Shift and rotate


Basic PLC programming tutorial for Beginners how to work with Shift and rotate instructions in TIA V13 and how to work in TIA Portal V13/V14. Content: – Shift right (SHR) – Shift left (SHL)



[youtube=https://www.youtube.com/watch?v=dsK13nqiQuo&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with Shift and rotate instructions in TIA V13 and how to work in TIA Portal V13/V14. Content: – Rotate right (ROR) – Rotate left (ROL)


[youtube=https://www.youtube.com/watch?v=s_8XKxtXNT0&w=320&h=266]

PLC programming tutorial – Word logic operations


Basic PLC programming tutorial for Beginners how to work with word logic operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – AND logic operation (AND) – OR logic operation (OR) – EXCLUSIVE OR logic operation (XOR) – Create ones complement (INVERT) – Decode (DECO)

[youtube=https://www.youtube.com/watch?v=7qvubojlQN8&w=320&h=266]


Basic PLC programming tutorial for Beginners how to work with word logic operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Encode (ENCO) – Select (SEL) – Multiplex (MUX) – Demultiplex (DEMUX)

[youtube=https://www.youtube.com/watch?v=nio6BJ5Buts&w=320&h=266]


PLC programming tutorial – Program control operations


Basic PLC programming tutotrial for Beginners how to work with program control operations in TIA V13 and ho to work in TIA Portal V13/V14. Content: – Jump if RLO = 1 (–(JMP)) – Jump if RLO = 0 (–(JMPN)) – Jump label (Label)

[youtube=https://www.youtube.com/watch?v=PS3cYlwtHyQ&w=320&h=266]



Basic PLC programming tutorial for Beginners how to work with program control operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Define jump list (JMP_LIST) – Jump distributor (SWITCH) – Return (–(RET))


[youtube=https://www.youtube.com/watch?v=_U_t30Szdm8&w=320&h=266]

PLC programming tutorial – Conversion operations


Basic PLC programming tutorial for Beginners how to work with conversion operation in TIA V13 and how to work in TIA Portal V13/V14. Content: – Convert value (CONVERT) – Round numerical value (ROUND) – Generate next higher integer from floating-point number (CEIL) – Generate next lower integer from floating-point number (FLOOR)


[youtube=https://www.youtube.com/watch?v=t1GUYo8uNyQ&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with conversion operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Truncate numerical value (TRUNC) – Scale (SCALE_X) – Normalize (NORM_X) – Scale (SCALE) – Unscale (UNSCALE)

[youtube=https://www.youtube.com/watch?v=8Jb9WxnRcus&w=320&h=266]

PLC programming tutorial – Move operations


Basic PLC programming tutorial for Beginners how to work with move operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Move value (MOVE) – Deserialize – Serialize


[youtube=https://www.youtube.com/watch?v=bneq9NUk2Vs&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with move operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Move block (MOVE_BLK) – Move block (MOVE_BLK_VARIANT) – Move block uninterruptible (UMOVE_BLK)

[youtube=https://www.youtube.com/watch?v=GGyxZU9Xi6Y&w=320&h=266]
Basic PLC programming tutorial for Beginners how to work with move operation in TIA V13 and how to work in TIA Portal V13/V14.

Content: – Fill block (FILL_BLK)

– Fill block uninterruptible (UFILL_BLK)

– Swap (SWAP)



[youtube=https://www.youtube.com/watch?v=wDQYAxSmU5g&w=320&h=266]


PLC programming tutorial – Math operations


Basic PLC programming tutorial for Beginners how to work with math operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Calculate (CALCULATE) – Add (ADD) – Subtract (SUB) – Multiply (MUL) – Divide (DIV)

[youtube=https://www.youtube.com/watch?v=FyVvbvbTCUA&w=320&h=266]


Basic PLC programming tutorial for Beginners how to work with math operations in TIA V13 and how work in TIA Portal V13/V14. Content: – Return remainder of division(MOD) – Create twos complement (NEG) – Increment (INC) – Decrement (DEC) – Form absolute value(ABS) – Get minimum (MIN) – Get maximum (MAX) – Set limit value (LIMIT)

[youtube=https://www.youtube.com/watch?v=K-ZV62zLSU8&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with math operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Form square (SQR) – Form square root (SQRT) – Form natural logarithm (LN) – Form exponential value (EXP) – Form sine value (SIN) – Form cosine value (COS)

[youtube=https://www.youtube.com/watch?v=KxmM8N54mdE&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with math operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Form tangent value (TAN) – Form arcsine value (ASIN) – Form arccosine value (ACOS) – Form arctangent value (ATAN) – Return fraction (FRAC) – Exponentiate (EXPT)

[youtube=https://www.youtube.com/watch?v=aq17dMQsJtk&w=320&h=266]


PLC programming tutorial – Comparator operations


Basic PLC programming tutorial for Beginners how to work with comparator operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Compare Equal (CMP==) – Compare Not Equal – Compare Greater or Equal – Compare Less or Equal – Compare Greater than – Compare Less than – Inside Range (IN_Range) – Outside Range (OUT_Range)



[youtube=https://www.youtube.com/watch?v=KrNXefZfOhQ&w=320&h=266]

PLC programming tutorial – Counter operations


Basic PLC programming tutorial for Beginners how to work with counter operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Content: – Counter Up (CTU) – Counter Down (CTD) – Counter Up and Down (CTUD)

[youtube=https://www.youtube.com/watch?v=KiTJDT9CTeo&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with counter operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Content: – Start Counter Up (S_CU) – Start Counter Down (S_CD) – Start Counter Up/Down (S_CUD)

[youtube=https://www.youtube.com/watch?v=K3LnA-YdZRA&w=320&h=266]



Basic PLC programming tutorial for Beginners how to work with counter operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Content: – Set Counter –(SC) – Counter Up –(CU) – Counter Down –(CD)

[youtube=https://www.youtube.com/watch?v=6KcMnK-eWiU&w=320&h=266]


PLC programming tutorial – Bit logic operations


Basic PLC programming tutorial for Beginners how to work with Bit logic operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Contents: – Normally open contact – Normally closed contact – Assignment / Negate assignment – Invert RLO – Set output / Reset output – Set/Reset flip-flop SR – Reset/Set flip-flop RS

[youtube=https://www.youtube.com/watch?v=xUYc0KSYBDg&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with Bit logic operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Contents: – Scan operand for positive signal edge – Scan operand for negative signal edge – Set operand on positive signal edge – Set operand on negative signal edge – Scan RLO for positive signal edge – Scan RLO for negative signal edge – Detect positive signal edge – Detect negative signal edge

[youtube=https://www.youtube.com/watch?v=lnwQ-z_lGdw&w=320&h=266]


PLC programming tutorial – Timer operations


Basic PLC programming tutorial for Beginners how to work with timer operations in TIA Portal V13 and how to work in TIA Portal V13/V14. Content: – Time pulse (TP) – Timer ON (TON) – Timer OFF (TOF) – Timer ON accumulator (TONR) – IEC Timer pulse -(TP)- – IEC Timer ON -(TON)- – IEC Timer OFF -(TOF)- – IEC Timer ON with reset -(TONR)-


[youtube=https://www.youtube.com/watch?v=7Bee-VVrKl8&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with timer operations in TIA V13 and how to work in TIA Portal V13/V14. Content: – Reset timer -(RT)- – Preset timer -(PT)- – Start pulse (S_PULSE) – Start pulse extended (S_PEXT) – Start on delay timer (S_ODT) – Start on delay timer and save (S_ODTS)

[youtube=https://www.youtube.com/watch?v=iWcS89cxwl4&w=320&h=266]

Basic PLC programming tutorial for Beginners how to work with timer operations in TIA Portal V13 and how work in TIA Portal V13/V14. Content: – Start off delay timer (S_OFFDT) – Start pulse –(SP) – Start extended –(SE) – Start delay –(SD) – Start retentive on delay –(SS) – Start off –(SF)

[youtube=https://www.youtube.com/watch?v=n8Xu_9xBlY8&w=320&h=266]

PLC programming tutorial – Program blocks


Basic PLC programming tutorial for Beginners how to work with program blocks in TIA Portal V13 and how to work in TIA Portal V13/V14. Contents: – Organization blocks – Function blocks

[youtube=https://www.youtube.com/watch?v=7r8I7TLFANA&w=320&h=266]


Basic PLC programming tutorial for Beginners how to work with program blocks in TIA Portal V13 and how to work in TIA Portal V13/V14. Contents: – Function blocks FB – Function FC – Database

[youtube=https://www.youtube.com/watch?v=01k8fpKF7IE&w=320&h=266]


Basic PLC programming tutorial for Beginners how to work with program blocks in TIA Portal V13 and how to work in TIA Portal V13/V14. Contents: – Function blocks – Data blocks

[youtube=https://www.youtube.com/watch?v=L0B_gdmzTWM&w=320&h=266]