You are on page 1of 64

INFERCON AUTOMATION PVT LTD

TRAINING MODULE FOR DELTA PLC


CAE-CILT-DAY-5
No Title Total
Slides
1. TIMER 6

CONTENT 2. DATA REGISTER 14

3. MEMORY/DUMMY 7
ADDRESS
4. COUNTER(16-bit) 7

5. COMPARISON 7

6. COMPARATOR 10

7. EXERCISE 5

INFERCON AUTOMATION PVT LTD


TIMER
There are three types of timer namely:
 ON Delay Timer
OFF Delay Timer
Pulse Timer

Functionality: When TMR instruction is executed, the specific coil of timer is


ON and timer will start to count. When the setting value of timer is attained
(counting value >= setting value), the contact(T0) will be ON/OFF

Operand: S : T
Syntax:
TMR<SPACE>TIMER ADDRESS<SPACE>DELAY TIME(SECONDS)

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 123456


 Type TMR T0 K50 and then Click OK

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 1 23456


 Timer Function is created.

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 1 2 3456


 Then we need to create Timer call Function because after time delay timer will activate one
particular input. By using that input, we can switch on the output.
 EXAMPLE: LD T0
 Compile and download the program into the PLC and execute it.

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 1 2 3 456


 Input X0 is ON, timer is running.

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 1 2 3 4 56
 After 50 sec (time you mentioned) delay , the output (Y0) turns ON
 Based on the process you can use timers as OFF delay or PULSE timer

Explanation Ladder program Download Execution Online/Simulator

1 - 7. TIMER Pg no: 1 2 3 4 5 6
DATA REGISTER
Functionality: Data Registers are storage registers in which we can
store data and use that data anywhere in your logic or program.
Instead of giving direct value in program, we can give the value
through data registers

Data Types:
– Word (16-bit) (only positive values i.e. 0 to 65535)
– Double Word (32-bit) (only positive values i.e. 0 to 2^31)
– Integer (16-bit) (-32767 to 32767)
– Double Integer (32-bit) (-2^31 to 2^31)
– Real/Float number (32-bit) (decimal values)

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Type Timer syntax as TMR T0 D0 and click OK

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Compile and download the program into the PLC.

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Click on Communication --->Edit Register Memory(T,C,D)

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Data Register Window will open. Here We can give values to data registers.
 Click D register

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Give any value in D0 Register like 50, 25, 75…..
 Then click Transmit

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Pop up window is open.

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Click Write to PLC device Registers, then Click OK

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Now data register values has downloaded into PLC device registers.

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Click OK

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Click Ladder Diagram Icon for go back to Program Window

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Go to online mode.

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


 Input X0 is ON
 Timer starts running

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


MEMORY/DUMMY
ADDRESS
 After time delay completion output Y0 is ON

Data Register Download and


Explanation Ladder program Online/Simulator
Table Execution

2 - 7. DATA REGISTER Pg no: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Functionality: Memory Address are bit address that can use store the
status of particular process indication or stage.
Memory Address: M0, M1, M2,……..
Syntax: LD<SPACE>M0
We can use this memory register as input or output.

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1234567


 Type LD M0 and Click OK

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 234567


 Select M0 and right click.
 Select Set On

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 2 3 4567


 Create output and download into the PLC.

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 2 34567


 Physical output Y0 is ON

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 2 3 4 567


 Right click M0 and click Set Off

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 2 3 4 5 67


 M0 is OFF and output is OFF

Explanation Ladder program Download Execution Online/Simulator

3 - 7. MEMORY/DUMMY ADDRESS Pg no: 1 2 3 4 5 6 7


COUNTER
(16-bit)
Counters are of three types namely:
 UP Counter
 DOWN Counter
 UP-DOWN Counter

Syntax: CNT<SPACE> S1<SPACE> S2


S1 : 16 bit counter number
S2 : Set value
Operand: S1 : C S2 : K, D
Explanations:
 When the CNT instruction is executed from OFF to ON, which means
that the counter coil is driven, and should thus be added to the counter’s
value; when the counter achieved specific set value (value of counter =
the setting value).

 If there is counting pulse input after counting is attained, the contacts and
the counting values will be un unchanged. To re-count or to conduct the
CLEAR motion, please use the RST instruction

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1234567


 Type CNT C0 K5 and then Click OK

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 234567


 Create counter call function C0.
 Type LD<SPACE>C0
 Create the output.

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 2 34567


 Then download the program to PLC and execute the logic.

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 2 3 4567


 Go to Online mode.

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 2 3 4 567


 The Input X0 is ON and counter get the one clock pulse.

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 2 3 4 5 67
 If Counter gets 5 signals(False to True), it will activate the Counter call function C0. The Output
Y0 is ON

Explanation Ladder program Download Execution Online/Simulator

4 - 7. COUNTER(16-bit) Pg no: 1 2 3 4 5 6 7
COMPARISON
Instruction:
Input Comparison Instructions
– = (Equal)
– <> (Not equal)
– < (Less than)
– <= (Less than or equal)
– > (Greater than)
– >= (Greater than or equal)
Function: Input comparison instructions compare two values (constants
and/or the contents of specified words) and create an ON execution
condition when the comparison condition is true.

Syntax: LD<SYMBOL><SPACE>S1<SPACE>S2

Operands: S : S1, S2
S1: K, H, KnX, KnY, KnM, KnS, T, C, D, E, F
S2: K, H, KnX, KnY, KnM, KnS, T, C, D, E, F

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1234567


 Type LD= D0 D1 and click OK

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 234567


 Create one output.

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 2 34567


 Change the comparator symbol and follow the same procedure for Not Equal, Greater Than,
Greater Than Or Equal ,Less Than, Less Than Or Equal.
 Compile and download the program into the PLC.

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 2 3 4567


 Input X0 is ON and D0 and D1 values are equal output is ON

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 2 3 4 567


 The values D0 and D1 are not equal output is OFF

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 2 3 4 5 67
 Input X1 is ON, D2 and D3 values are not equal output is ON

Explanation Ladder program Download Execution Online/Simulator

5 - 7. COMPARISON Pg no: 1 2 3 4 5 6 7
COMPARATOR
Syntax: CMP<SPACE>S1<SPACE>S2<SPACE>D

Functionality: The contents of S1 and S2 are compared and D denotes the

comparison result. Two comparison values are compared algebraically and

the two values are binary values. When b15=1 in 16-bit instruction or b31=1

in 32-bit instruction, the comparison will regard the value as a negative binary

value.

S1: First comparison value, S2: Second comparison value,

D:Comparison result

Operand:
– S1: K, H, KnX, KnY, KnM, KnS, T, C, D, E, F
– S2: K , H, KnX, KnY, KnM, KnS, T, C, D, E, F
– D: Y, M, S

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Create one input then type CMP<SPACE>D0<SPACE>D1<SPACE>M0
 Click OK

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Create a program like below one then download the program into PLC and execute it.
 M0 ---> Greater than output, M1---> Equal output, M2---> Less than output

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Compile and download into the PLC.

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Input X0 is ON
 The data register D0, D1 values are equal.
 M1 is ON

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 If you want the change the data register value select compare instructions and right click.
 Click the Change Present Value

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 The window is open and select the device name D0
 Change the value in K10 and click OK

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Now M0 is ON because of D0 greater than D1

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Same procedure repeat and change the D1 value.

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
 Now M2 is ON because D0 lesser than D1

Explanation Ladder program Download Execution Online/Simulator

6 - 7. COMPARATOR Pg no: 1 2 3 4 5 6 7 8 9 10
EXERCISE
EXERCISE - 4

MOTOR

START STOP
POSITION PB PB
SENSOR

DRILLER

DRILL DOWN
POSITION SENSOR

JOB
SENSOR

7 - 7. EXERCISE Pg no: 1 234


 If the start push button is ‘ON’ the process is ready to start.

 When the job sensor detects the object and the position sensor is ON, the

drill forward will turn ‘ON’ until the drill down position sensor gets ‘ON’.

 Then the motor should rotate in opposite direction and drill backward until the

position sensor gets ‘ON’.

 When the stop push button is pressed, the motor should gets ‘OFF’

7 - 7. EXERCISE Pg no: 1 234


EXERCISE - 5

FROM PUMP
SUMP
START STOP
PB PB

HLS

VALVE

LLS
TO
HOUSEHOLD
USAGE

7 - 7. EXERCISE Pg no: 1 2 34
 When the start push button is pressed, the process is ready to start.

 When LLS is ‘OFF’, the pump should gets ‘ON’

 When LLS is ‘ON’, the pump should be in ‘ON’ state until HLS gets ‘ON’

 Once HLS gets ‘ON’, the pump turns ‘OFF’ and the valve should turn ‘ON’

 When the valve is in ‘ON’ state, the water starts draining from the tank and this leads

HLS to turn ‘OFF’. Once HLS turns ‘OFF’ the pump should not turn ‘ON’ until the LLS

turns ‘OFF’

 Once LLS turns ‘OFF’ after the draining of water, the pump should turn ‘ON’ and the

valve should turn ‘OFF’. Therefore the process should repeat in a cyclic manner until the

stop push button is pressed.

7 - 7. EXERCISE Pg no: 1 2 3 4

You might also like