Professional Documents
Culture Documents
RIA Experiment 2 - PLC Statement List
RIA Experiment 2 - PLC Statement List
II. Scope
A. Theory
Statement List
Statement list is a programming language using mnemonic
abbreviations of Boolean logic operations. Boolean operations work on
combination of variables that are true or false. A statement is an instruction
or directive for the PLC.
Basic sets
STEP con2
(condition/operation)
(condition/operation)
STEP con3
IF NOP
THEN JMP TO con1
IF – THEN – OTHRW
Used in a conditional operation. If one or more conditions are fulfilled,
then the program will execute an action. Otherwise, if the conditions
are not fulfilled, then the program will execute another action.
Example:
IF I1.0
THEN SET O1.0
OTHRW RESET O1.0
Condition
AND : to create an AND logic operation between two or more input.
OR : to create an OR logic operation between two or more input.
EXOR : to create an EXOR logic operation between two or more
input.
NOP : No Operation
N : to negate an input
Action
SET
Set the output logic to 1.
Example:
SET output0
RESET
Set the output logic to 0 ( clear ).
Example:
RESET output0
JMP TO
Jump from one step to another step.
Figure 2.1
Function Chart
Apart from the statement list and ladder diagram, there is function chart
which is in the form of logic gates. it is easily recognized in the form of
symbols. but the symbol was slightly different. List of symbols that
recognized in FST 4.10:
Negation A X X A
1
AND A X Y X A
Y &
OR A X Y X A
Y
NAND A X Y X
&
A
Y
NOR A X Y X A
Y
B. Devices
III. Reference(s)
A. Experiment task I
1. Create a program using statement list which utilizing a latching switch
(S3L) and a lamp + buzzer (L4B) to solve these conditional problem :
- If S3L is pressed, then L4B on (L4 on , Buzzer on)
- If S3L is pressed again, then L4B off.
2. Compare the program that you’ve just create using statement list and the
program in the previous experiment.
B. Experiment task II
1. Create a program using statement list which utilizing two switches (S1 &
S2) and two lamps (L1 & L3) to solve these conditional problem :
- If either one of the two switches (S1 or S2) is pressed, then L1 on,
and L3 off.
- If S1 and S2 are pressed, then L1 off and L3 on.
- If neither S1 nor S2 are not pressed, both lamp will be off ( L1 and
L3 ).
Figure 2.2
In this task you will learn how to create a program to control sequential
motion.
You must include these tasks on your final report to get a minimum grade :
1. Explanation about statement list.
2. List the difference between statement list and ladder diagram.
3. List the advantage and disadvantage of using statement list and ladder
diagram.
4. Explanation about how to use statement list.
5. List all the commands available in statement list.
6. Draw a circuit diagram of the system you’ve designed during the
experiment
7. Explanation about sequential program.
8. Explanation about the sensors and actuators used in the experiment and
its function.
9. Draw a circuit diagram and a step diagram for all experiment done in this
lab activity.
10. Draw a circuit diagram that controls a double acting cylinder using a
single valve.
11. Provide statement list of all programs that you have created in the
experiment.
V. Attachment
Example program:
Two double acting cylinder using single solenoid valve, here is the symbolic
operand for each I/O.
Table 2.2
inp0 Sensor that indicated cyl0 is retracted
inp1 Sensor that indicated cyl0 is extended
inp2 Sensor that indicated cyl1 is retracted
inp3 Sensor that indicated cyl1 is extended
out0 Output for cyl0
0 - retract, 1 - extend
out1 Output for cyl1
0 – retract, 1 - extend
STEP 1
IF inp0 "COND: cyl0 retracted"
THEN SET out1 "OUT: cyl1 forward"
STEP 2
IF inp3 "COND: cyl1 extended"
THEN SET out0 "OUT: cyl0 forward"
STEP 3
IF inp1 "COND: cyl0 extended"
THEN RESET out1 "OUT: cyl1 backward"
STEP 4
IF inp2 "COND: cyl1 retracted"
THEN RESET out0 "OUT: cyl0 backward"
STEP 5
JMP TO 1