When C5:0 is done counting and C5:0.PRE = C5:0.ACC, C5:0/DN goes high momentarily which resets
counter immediately for next counting operation.
C5:0/DN bit can be used to take further actions such as moving filled box and packing it.
Runtime Test Cases
Inputs
Outputs
Physical elements
I:1/14 = 1
O:2/0 = O:2/1 = 1
Start conveyor motor
I:1/0 = 1
C5:0.PRE = 15
Collect 15
square objects
I:1/1 = 1
C5:0.PRE = 20
Collect 20 balls
I:1/2 = 1
C5:0.PRE = 10
Collect 10
rectangular blocks
PLC Program to Reset all Non-Retentive Outputs
This is a PLC Program to Reset all Non-Retentive Outputs.
Problem Description
Reset all Non-Retentive outputs of a process. Implement this by using MCR instruction in PLC using
Ladder Diagram programming language.
Problem Solution
By using Master Control Relay MCR instruction, we can solve this problem.
When this instruction is enable, line is energized, it turns on.
When MCR is OFF, the number of following ladder diagram lines specified are turned off.
In many PLCs, all outputs are turned off while in many PLCs, only Non-retentive outputs are turned off.
In PLCs such Allen Bradley and Siemens, all non-retentive outputs are turned off.
The MCR must be turned on to be inactive. If the function goes off for some reason, it is active and turns the
specified lines off.
PLC Program
Here is PLC program to Reset all Non-Retentive Outputs, along with program explanation and run time
test cases.
List
of Inputs and Outputs
I:1/0
=
Activate MCR
(Input)
I:1/1
= Activate Non-retentive output1 (Input)
I:1/2
= Activate Non-retentive output2 (Input)
I:1/3
=
Activate retentive output
(Input)
O:2/1
= Non-retentive output1
(Output)
O:2/2
= Non-retentive output2
(Output)
O:2/3
=
Retentive output
(Output)