Explain check validity instruction using the example
Application:-.Write PLC program for an explanation using ladder diagram language
in the Programmable Logic Controller (PLC).
Components:-Programmable
logic controller, HMI panel, wires, 24 VDC lamp, 24 VDC power source, 24VDC
temperature controller.
Diagram:-
Explanation:-
Check arability instruction is used to check entered
values in the operands. For example, we want to make the multiplication of two
values and both values are INT. Here we will check both the entered value are
INT and we will ensure these via instruction.
PLC
program:-
Write the ladder program for above application using
ladder diagram language. Here for ladder logic we can use any supported PLC
system like S7-1200, S7-300, S7-1500 or any other PLC which can support this
instruction. For PLC logic we need digital inputs and outputs.
For our application lamps are digital outputs. Value
1 and value 2 are input words.
M
Memory:-
Value 1:-MD20
Value 2:-MD24
PLC
program Explanation:-
In network 1,
we have used check avaibility instruction in multiplication, here we are using
MUL instruction for multiplication of two values. Two values are INT but we
need to verify with instruction.
So here we have used two INT values in MUL
instruction and OK instruction will check both the values (value 1 and value 2)
are INT or other data types.
If both value in MD 20 and MD24 are INT, it will
allow multiplication or not.
No comments:
Post a Comment