6 PLC Adama Science and Technology University Lab Manual 6

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Adama Science and Technology University

School of Electrical Engineering & Computing


Department of Power and Control Engineering
Programmable Logic Controllers & Industrial drives (EPCE-5304)
Lab manual 6
Objective: Program Practice using Transmission (MOVE) Command on GMWin PLC
• - Learn about data movement using transmission command (MOVE).
Material:
• Personal PC
• GMWin PLC module with its software
• Connectors
Related Knowledge

1) One should be able to understand data type.


2) One should be able to understand expression of antilogarithm and system of notation.
I) Activating Condition
1) Build a circuit in such a way that digital switch input is transmitted to %QW0.2.0 with
switch 1 using MOVE command on DISPLAY, and inputted BCD values are separately
transmitted to %QB0.3.0 (LAMP 0 ~ LAMP 7) and %QB0.3.1(LAMP 8 ~ LAMP15), and
the pertinent LAMP turns on.
2) PLC I/O MAP is configured as below.

3) Power supply consists of DC 24V, and should be used separately for input and output.
PLC COM is connected to DC 0V (-) while switch COM and LAMP are connected to
DC 24V.

1
II) Procedure
1) Execute GMWIN and open the Project window and the Program window.
2) Create a program using PLC I/O MAP.
3) Refer to the previous task concerning programming method.
4) The figure below shows program that satisfies the above conditions using MOVE.

5) How to use MOVE command

① To use MOVE command, choose from the toolbox and press the left button of
mouse after placing cursor in the pertinent spot. Then the Function menu shows up.
Just like function block (used for timer and counter), function has a structure different
from what applies to MASTER-K PLC. Function is a set of various commands used
for PLC programming.
② To use MOVE command, choose MOVE from Function Selection to generate a
syntax as below. (select function window appeared)

2
③ MOVE has EN, ENO, IN1, and OUT as input/output structure.
MOVE is a sort of function (easier to take it as a command) that has capability of
copying data, and its structure is as follows.
- EN: Input contact point to execute MOVE function
- ENO: Output status of MOVE (BIT form)
- IN1: Value to copy
- OUT: Value to be copied
* Variables related to IN1 and OUT should have the same data type.
④ Antilogarithm, system of notation, and data type are all important.
- The meaning of 16#1111: Hexadecimal that has 16 bits ranged from the lowest bit
to the highest bit consists of four bits (nibble concept). Which has 4 bits.

- A data expression, 16#1111H, is hexadecimal with the value, 1111. If it is


represented as 4 parts (nibble unit), in which each has 4 bits (16 possibilities),
%QX0.2.0, %QX0.2.4, %QX0.2.8, and %QX0.2.12 turn out to be ON, and rest
bits are all OFF.
⑤ If the data is represented in terms of binary combination of ON/OFF, it would be
0001 0001 0001 0001 shown in the figure, and 1111H as a hexadecimal. (In
1111H, H means hexadecimal, and is omitted in actual programming.)
⑥ In addition, 16#FFFFH that is equivalent to 1111 1111 1111 1111 shows that all
contact points (BIT) in between %QX0.2.0 and %QX0.2.15 turn out to be ON.

3
III) Execution of Program (using simulator)
1) To verify what was mentioned above, one uses a simulator, which is a characteristic of
GMWin to perform an experiment to check whether there is any abnormality in the
circuit and its activation. (Refer to the figure.)

① The figure above shows that when the simulator is chosen to execute CPU with the
RUN(R) mode, and turn on switch 1, 2, and 3, data 8421 is transmitted to
DATA1(%QW0.2.0), DATA2(%QB0.3.0), and DATA3 (%QB0.3.1). (Outputs are
controlled by each switch.)
② If 16#8421H is expressed as binary, it is (8)1000 (4)0100 (2)0010 (1)0001, and it means
that output contact points at 0, 5, 10, 15 have lamp turned on. Then the data are
transmitted by WORD and BYTE units, and 16#??21 is transmitted by switch 2, and
16#84?? by switch 3. As for data input, use digital switch for practice, and remove 25pin
cable when push/toggle switches are used for input.
③ To stop the simulator, just click shortcut in its right upper portion.

1) Connect the Diagram with the Hardware module.

You might also like