SIMATIC S7-1200: The Modular Mini-PLC
-Compact controllers for the low to mid-performance ranges
-Large-scale integration, space-saving, powerful
-With exceptional real-time performance and powerful communication options:
-Controller with integrated PROFINET IO controller interface for communication between SIMATIC -controllers, HMI, programming device or other automation components
-All CPUs can be used in stand-alone mode, in networks and within distributed structures
-Extremely simple installation, programming and operation
-Integrated web server with standard and user-specific web pages .
Specification:-
Hardware :-S7-1200
Model No:-1214 AC/DC/RLY
Work memory 100 KB;
120/240VAC power supply with DI14 x 24VDC SINK/SOURCE,
DQ10 x relay and AI2 on board; 6 high-speed counters and 4 pulse outputs on board;
signal board expands on-board I/O; up to 3 communication modules for serial communication;
up to 8 signal modules for I/O expansion; 0.04 ms/1000 instructions;
PROFINET interface for programming,
HMI and PLC to PLC communication
Case Study 1:-S7-1200 PLC Confugration in TIA Portal
Step 1:-Open TIA Portal Software from the Desktop icon.
Step 2:-Select View
Step 3:-Create New Project and write the name in Selected directory
Step 4:-Select Controller from the List
Step 5:-Select PLC 1214 AC/DC/RLY PLC from the Catlog
Step 6:- Press add button and save
Case Study 2:-Start/Stop Lamp Using Latching Concept.
Latching:-A latch is like a sticky switch - when pushed it will turn on, but stick in place, it must be pulled
to release it and turn it off.
Example:-Controlling the Running State of the Lamp by Pressing Start/Stop Button.
Set Coil:-
You can use the "Set output" instruction to set the signal state of a specified operand to "1".
The instruction is only executed if the result of logic operation (RLO) at the input of the coil is "1". If power flows to the coil (RLO = "1"), the specified operand is set to "1". If the RLO at the input of the coil is "0" (no signal flow to the coil), the signal state of the specified operand remains unchanged.
Reset Coil:-
You can use the "Reset output" instruction to reset the signal state of a specified operand to "0".The instruction is only executed if the result of logic operation (RLO) at the input of the coil is "1". If power flows to the coil (RLO = "1"), the specified operand is reset to "0". If the RLO at the input of the coil is "0" (no signal flow to the coil), the signal state of the specified operand remains unchanged.
Example:-Controlling the Running State of the Lamp by Pressing Start/Stop Button.
SET/RESET
Case Study 4:-Timers in S7-1200 -TIA Portal
Generate Pulse Timer:-
You can use the "Generate pulse" instruction to set the output Q for a programmed duration. The instruction is started when the result of logic operation (RLO) at input IN changes from "0" to "1" (positive signal edge). The programmed time PT begins when the instruction starts. Output Q is set for the duration PT, regardless of the subsequent course of the input signal. Even if a new positive signal edge is detected, the signal state at the output Q is not affected as long as the PT time duration is running.ON Delay Timer:-
You can use the "Generate on-delay" instruction to delay setting of the Q output by the programmed duration PT. The instruction is started when the result of logic operation (RLO) at input IN changes from "0" to "1" (positive signal edge). The programmed time PT begins when the instruction starts. When the duration PT expires, the output Q has the signal state "1". Output Q remains set as long as the start input is still "1". When the signal state at the start input changes from "1" to "0", the Q output is reset. The timer function is started again when a new positive signal edge is detected at the start input.Off Delay Timer:-
You can use the "Generate off-delay" instruction to delay resetting of the Q output by the programmed duration PT. The Q output is set when the result of logic operation (RLO) at input IN changes from "0" to "1" (positive signal edge). When the signal state at input IN changes back to "0", the programmed time PT starts. Output Q remains set as long as the duration PT is running. When duration PT expires, the Q output is reset. If the signal state at input IN changes to "1" before the PT time duration expires, the timer is reset. The signal state at the output Q continues to be "1".The current time value can be queried at the ET output. The time value starts at T#0s and ends when the value of duration PT is reached. When the time duration PT expires, the ET output remains set to the current value until the IN input changes back to "1". If input IN switches to "1" before the duration PT has expired, the ET output is reset to the value T#0s.
Time accumulator:-
The "Time accumulator" instruction is used to accumulate time values within a period set by the PT parameter. When the signal state at input IN changes from "0" to "1" (positive signal edge), the instruction is executed and the duration PT starts. While the duration PT is running, the time values are accumulated that are recorded when the IN input has signal state "1". The accumulated time is written to output ET and can be queried there. When the duration PT expires, the output Q has signal state "1". The Q parameter remains set to "1", even when the signal state at the IN parameter changes from "1" to "0" (negative signal edge).The R input resets the outputs ET and Q regardless of the signal state at the start input.
Each call of the "Time accumulator" instruction must be assigned to an IEC timer in which the instruction data is stored.
Timers In S7-1200 _TIA Portal
Case Study 4:-Counters in S7-1200-TIA Portal
Counter Up:-
You can use the "Count up" instruction to increment the value at output CV. When the signal state at the CU input changes from "0" to "1" (positive signal edge), the instruction is executed and the current counter value at the CV output is incremented by one. The counter value is incremented each time a positive signal edge is detected, until it reaches the high limit for the data type specified at the output CV. When the high limit is reached, the signal state at the CU input no longer has an effect on the instruction.Counter Down:-
The value at the CV output is reset to zero when the signal state at input R changes to "1". As long as the R input has signal state "1", the signal state at the CU input has no effect on the instruction.Counter Up&Down:-
You can use the "Count down" instruction to decrement the value at output CV. When the signal state at the CD input changes from "0" to "1" (positive signal edge), the instruction is executed and the current counter value at the CV output is decremented by one. Each time a positive signal edge is detected, the counter value is decremented until it reaches the low limit of the specified data type.You can use the "Count up and down" instruction to increment and decrements the counter value at the CV output. If the signal state at the CU input changes from "0" to "1" (positive signal edge), the current counter value is incremented by one and stored at the CV output.
Counters in S7-1200_TIA Portal
No comments:
Post a Comment