5212_new
5212_new
5212_new
USER MANUAL
PROGRAMMABLE LOGIC
CONTROLLER
CONTENTS
Page.No.
1. INTRODUCTION 2
2. TECHNICAL SPECIFICATIONS 3
5. DEVICE NUMBERS 7
DIAGRAM 13
8. INSTALLATION OF SOFTWARE 14
Step 1: Read the external input signal, such as the status of keypad, sensor,
switch and pulse.
There are stronger functions in PLC with the development and application
requirements of electronic technology, such as position control, network and
etc. Output/Input signals are DI(Digital Input),AI(Analog Input), PI(Pulse
Input),DO(digital Output),AO(Analog Output) and PO (Pulse Output).Thus
PLC plays an important role in the feature industry.
O
I Power supply U
N T
P P
U Processor U
T T
Programming Device
TECHNICAL SPECIFICATIONS
Input/Output Specifications:
DC Input:
DC OUTPUT
(2A/COM)
ON OFF 15µSec
1. OUTPUTS:
2. COMMONS&Vcc:
4. STEPPER MOTOR:
5. INPUTS:
I0,I1………..I7 are the input toggle switches. By using these
switches we can handle the inputs of the PLC.
6. CONTROL WINDINGS:
FUSE
1. POWER ON/OFF:
3. RS232 CABLE:
This cable is provided for communicating with PC to downloading the
program.
DEVICE NUMBERS:
Type Device Item Usage Range Function
X External input relay X0-X177,128 points, octal Correspond to
Bit mode number system Total is 256 external input point
Y External Output relay Y0-Y177, 128 points, octal Points Correspond to
number system external output
point
For General M0-M511, M768-M999, 744
R e l a y
nested loop
P For CJ, CALL commands P0-P63, 64 Points Location pointer of
CJ,CALL.
Time interrupt 16 Location pointer of
I Interrupt External interrupt 1001,1101,1201,1301, 4Points interrupt subroutine
Communication interrupt 1150
K Decimal k-32,768-k32,767(16-bit operation)
Constant
k-2.147,483,648,-k2,147,483,647(32-bit operation)
H Hexadecimal H0000-HFFFF(16-bit operation)
H00000000-HFFFFFFFF(32-bit operation)
BASIC COMMANDS:
OUTPUT COMMANDS:
TIMERS, COUNTERS:
API Command Function Operands Execution speed (us) STEP page
Code
ES/EX/SS/EP/SA EH
96 TMR 16-Bit timer T-K or T-D 9.6 25 4 3-8
97 CNT 16-bit Counter C-K or C-D(16Bits) 12.8 30 4 3-8
97 DCNT 32-Bit Counter C-K or C-D(32Bits) 14.32 50 6 3-9
Rising-edge/falling-edge commands:
End commands:
Other commands:
1. COMBINATION LOGICS:
The following example is the combination logics that show in
traditional diagram and PLC ladder diagram separately.
Y1
X2 X4
X4
X2 Y2
X3 X3 Y2
2. SEQUENTIAL LOGICS:
The sequential logics are a type of circuit that possesses the
“Draw-Back” structure, which is to draw back the circuit’s output
result and has it serve as the input condition. Thus, under the same
input condition, different output results will be generated in
accordance with previous conditions and motions with different
orders.
The following example is the sequential logics that show in traditional
diagram and PLC ladder diagram separately.
X5 X6
Y3 X5 X6
Y3
Y3 Y3
When the above circuit is just supplied with power, although the
X6 switch is ON, the X5 switch is still OFF, Thus, the output relay Y3
will be in OFF condition; output of the relay will only be ON after X5
is ON. Once the output relay Y3 is in ON condition, there will be a
feedback signal containing the ON condition from Y3 to connect in
parallel with the A contact of X5; this circuit is thus also known as
the self-latched circuit. The circuit motion is showed in the following
chart:
Device Status
X5 X6 Y3
Step
1 N N OFF
2 Y N ON
3 N N ON
4 N Y OFF
5 N N OFF
From above chart, you can find that the same input may get different
result. For example, in the step 1 and 3, the status of X5 and X6 are in OFF
condition but Y3 is in OFF condition in step 1 and in ON condition in
step3,that is due the self-latched circuit feedback input. In this example, it
explains with contact A, contact B and output coil. The usage of other
equipment is the same with this. please refer to the chapter 3 for the detail.
X,Y,M,S,T,C
Parallel normally open OR
X,Y,M,S,T,C
Parallel normally close ORI
none
Block in Serial ANB
none
Block in parallel ORB
MPS none
Multiple Output MRD
MPP
S
S Step ladder STL
INSTALLATION OF SOFTWARE
PRECAUTIONS:
LOGIC GATES
AND GATE:
X0 X1
( Y0 )
END
OR GATE:
X0
( Y0 )
X1
END
NAND GATE:
( Y0 )
END
NOR GATE:
X0
( Y0 )
X1
END
NOT GATE:
X0
( Y0 )
END
XOR GATE:
X1
X0
( Y0 )
X0 X1
END
XNOR GATE:
X1
X0
( Y0 )
X0 X1
END
MUX GATE:
X1
X6 X7
X0
( Y0 )
X1 X6 X7
X2 X5 X7
Hi-Q Test Equipment Pvt.Ltd. HiQ - 5212
END
HALF ADDER:
X1
X0
( Y0 )
X0 X1
X1
X0
( Y1 )
END
FULL ADDER:
X1 X2
X0
( Y0 )
X2
X1
X2
X1 X0
X1 X2
X1
X0
( Y1 )
X2
X0
X1
END
HALF SUBTRACTOR:
X0 X1
( Y0 )
X0
X1
X1
X0
( Y1 )
END
FULL SUBTRACTOR:
X0 X1
X2
( Y0 )
X2
X1
X2
X1 X0
X1 X2
X1
X0
( Y1 )
X1
X0
X2
X1
END
COMPARATOR:
X0
ZRST M0 M2
X0
M0
( Y1 )
M1
( Y0 )
M2
( Y2 )
END
DELAY PROGRAM:
M1003
ZRST SO S127
X0
T127
S0
SET
S0
S ( Y0 )
RET
END
Output Connections:
a. Output O0 = Blue
b. Output O1 = Yellow
c. Output O2 = Red
d. Output O3 = Green
3. Use external DC power supply for the stepper motor.
STEPWISE:
M1002
ZRST S0 S127
ON Only for
1se and after SET S0
Run
S0
SET
S S20
S20
( Y3 )
PROGRAMABLE LOGIC CONTROLLER 28 of 37
T0
Hi-Q Test Equipment Pvt.Ltd. HiQ - 5212
TMR TO K2
K5
SET S21
TO K5
S222
S ( Y1 )
TMR
TMR TO K5
TO
SET 523
S23
S ( Y2 )
S23 TO
Hi-Q Test Equipment Pvt.Ltd. HiQ - 5212
TMR
RET
END
M1002
S0 S127
ON Only for
1 S and after
Run
SET S0
S0
SET S20
S
S20
S ( Y3 )
TMR T127 K2
T127
S21
S (Y2 )
TMR T127 K2
SET
T127
S22
S22
S ( Y1 )
TMR T127 K2
T127
SET S23
S23
S ( Y0 )
TMR T127 K2
T127
M1002
S0 S127
ON Only for
1 S and after
Run
SET S0
S0
SET S20
S
S20
( Y3 )
TMR T127 K5
T127
S21
S (Y2 )
TMR T127 K5
T127
SET
S22
S22
S ( Y1 )
TMR T127 K5
T127
SET S23
S23
S ( Y0 )
TMR T127 K5
T127
ANTI – CLOCKWISE:
SLOW:
M1002
S0 S127
ON Only for
1 S and after
Run
SET S0
S0
SET S20
S
S20
S ( Y3 )
TMR T127 K5
T127
S21
S (Y0 )
TMR T127 K5
T127
SET
S22
S22
S ( Y1 )
TMR T127 K5
T127
SET S23
S23
S ( Y2 )
TMR K5
T127
T127
RET
END
ANTICLOCKWISE CONTINUES:
M1002
S0 S127
ON Only for
1 S and after
Run
SET S0
S0
SET S20
S
S20
S ( Y3 )
TMR T127 K2
T127
S21
S (Y0 )
TMR T127 K2
T127
SET
S22
S22
S ( Y1 )
TMR T127 K2
T127
SET S23
S23
S ( Y2 )
TMR T127 K2
T127
S (S0 )
RET
END
NOTE:
Speed of the Stepper Motor in any direction depends upon the
Timer value. Change the Timer Value and observe Speed of the
Stepper Motor.