Page 259 - Electronic Mechanic - TP - Volume - 2
P. 259
ELECTRONICS MECHANIC - CITS
EXERCISE 185: Force input and output devices using the
software
Objectives
At the end of this exercise you shall be able to
• to create simple ladder logic using software
• force I/O divices from the software.
Requirements
Tools/Materials
• Power Supply - 1 No. • PC/LAPTOP Latest configuration - 1 No.
• Wiring Materials and connectors - 1 No. • PLC for Programming - 1 No.
• Communication Ports and cables - 1 No.
Procedure
Theory
Note: Most newer PLCs having its own configuration methods.Advised to follow respective user
manual.(Most of the procedures are same), Considered Siemens PLC as an example.
Setting up your S7-1200 PLC using STEP 7 Basic
Configure your S7-1200 PLC and provide data to be monitored via an Open Platform Communications (OPC)
connection.
Create a program in Main [OB1]
In the “Program blocks” folder of your PLC, double-click the “Main [OB1]” instruction. Copy the program shown
in the next picture.
You will find the bit logic operations in the “Bit logic” folder in the “Instructions” pane on the “Instructions” task card.
Drag’n’Drop the “Normally open contacts”, “the Output coil”, and the “Set/Reset flip-flop” into “Network 1” of your
“Main [OB1]” work area, according to the picture shown below. Make sure that the input fields are configured in
the same way as shown in the Fig 1.
Fig 1
242