Professional Documents
Culture Documents
Not guaranteed
Any deliberate disassembly of this product for improving the performance cannot be
covered by the manufacturer's warranty responsibility.
Service guide
Please, contact our customer support center for service application and consultation.
Customer support center: +82-31-730-7525 FAX : +82-31-730-7313
For the safe and correct use of this product, please make sure to read the user's
manual carefully before using it and follow the guidelines on how to handle and use this
product.
2. Manual
* Programmable Logic Controller (ED-4260 Experimental Manual)
3. Be Acquainted
(1) The caution and the rest of the content of each manual must be read prior to
using the equipment.
(2) Read the information on functions of each module and the instructions for using
the equipment before use.
(3) Know in advance the functions and the usage of the power supply and the I/O
ports in the ED-4260 frame, as well as the basic module (3 types).
The basic modules are as follows :
* PLC Input Controller (IM-4260-2)
* PLC Output Simulator (OM-4260-3)
* Count & Position Simulator (PM-4260-4)
(4) The input of this PLC is DC 12V~24V type. Therefore, one must never give the
power over DC 24V to the PLC input port. (between input terminal and the
com(common) terminal).
(5) The maximum allowed amount current for the output contact of the PLC output
module is 2A. For more that 1A load at AC 250V, a another auxiliary relay is
required.
(6) Care should be taken not to store or use the device under conditions below:
* Humidity
* Heat
* Vibration
* Dust
* Direct sunlight
Table of Contents
Chapter 6 Execution 61
6-1. Scan Time 61
6-2. I/O Refresh 62
6-3. I/O Image Area 62
6-4. Operation Mode 62
6-5. Changing the Operation Mode 64
6-6. Restart Mode 66
www.ed.co.kr
The Basics of PLC
(1) Should be easy to implement and modify program and sequence system.
(2) Maintenance and repair must be easy and must be plug-in type.
(3) Should be more reliable than relay controller.
(4) Output should be able to be connected to higher level computer.
(5) Should be smaller in size than relay controller.
(6) Should be more cost-effective than relay controller.
(7) Input should be supplied with AC115[V].
(8) Should be output AC115[V], 2[A].
(9) Should be expandable without making much modification of the entire system.
(10) Should be equipped with programmable memory, which is expandable to at least
4k words.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
2) Characteristics of PLC
[Table 1-4] lists the characteristics of PLC and other control devices, showing the
strength and weakness of each.
Characteristics of PLC
- Wide variety of functions
- High functionality of program (easy to design control circuit)
- Easy to control
- Easy to maintain
- Reliable
- Easy to install
www.ed.co.kr
The Basics of PLC
Relay contact output type, which is not restricted by the output voltage, is
generally used.
www.ed.co.kr
The Basics of PLC
2) Application of PLC
The applied area of PLC is expanding as facilities are challenged to be automated
more efficient. Specifically, the demand for PLC due to factory automation and FMS has
added to the old role of PLC of replacing the relay controller, the role in small manu-
facturing machines to large scale system facilities, as the current trend is for large scale
and high functionality. [Table 1-5] shows applications of PLC, organized by the subject
of control.
www.ed.co.kr
The Basics of PLC
1) CPU of PLC
Correspond to the role of the PLC brain, which fetches programs stored in memory
one by one and decodes and executes each one. This process is repeated very rapidly
and all data is processed in binary form.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
The input and output part of PLC is connects directly to the peripherals(input/output
elements) at site. Although the internal circuit of PLC uses DC +5(V) power (TTL lev-
el), the input and output part operates on a different voltage(DC 24V, AC 220V etc.),
therefore we must consider the interface between the inside and the outside of the PLC
is a critical factor for ensuring system stability. Following is the requirements for the in-
put and output part:
[Table 2-2] shows the external device connected to the input and output part.
Push-Button Switch
Selector Switch
Control Part and
Contact Type Toggle Switch
Operation Part
Level Switch(contact type)
Input Limit Switch
Reed Switch
Contactless Photo Sensor
Mechanical Device
Type Level Sensor
Proximity Switch
Control Part and Pilot Lamp
Indicator
Operation Part Bell(Buzzer)
Electromagnetic Valve(solenoid)
Output Electromagnetic Clutch
Actuator Mechanical Device Electromagnetic Brake
Electromagnetic Switch
(magnetic contact)
www.ed.co.kr
The Basics of PLC
1) Input Part
Transfers signal from external devices to the arithmetic logic unit of the CPU.
There are DC 24[V], AC 110/220[V] inputs, as well as other inputs module such as
analog input (A/D) module, high speed counter module, etc. [Figure 2-3] represent an
example of the input part circuit.
Device Device
2) Output Part
Transfers results of internal computation to external devices such as magnetic contactor
or solenoid to drive them. Types of output includes relay output, transistor output, and
SSR (Solid State Relay), and for other output modules, there are analog output (D/A)
module and position control module(POP). [Figure 2-4] shows an example of transistor
output module.
www.ed.co.kr
The Basics of PLC
+24V
Diode
Indication LED
Internal Device External Device
Load
Photo Coupler
[Figure 2-4] Transistor Output Module
As shown in [Table 2-3], relay output can be used for both DC and AC, but consid-
ering the limit in the durability of mechanical components, it is recommended to use a
contactless element as below SSR output in AC or the transistor output in DC.
Special modules
Position control module
Process rapid contact output at the designated frequency range and voltage level.
PID control module
Computes raw data received from analog input modules to reach the desired
value, using optimal conditions, and outputs the result to analog output module.
Desired value control
Control the desired value by repeatedly increasing, decreasing and sustaining the
current value within predetermined amount of time.
Etc.
Communication module, network module and specific control module.
www.ed.co.kr
The Basics of PLC
There is no difference between using a PLC and relay/timer, regarding the above two
issues. Therefore, in order to understand PLC control sequence, it is important that one
have knowledge about the characteristics of PLC and how to use it. For example, there
are hardware specifications such as nominal voltage and the number of contacts, and
software aspects such as logic operation, timer, and counter. This kind of information
can generally be found in the specification section of the catalog. In short, selecting the
correct feature out of the many features PLC provides is the key to good design.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
First of all, the operational difference between PLC and relay will be discussed, refer-
ring to the sequence diagram in [Figure 2-6(a)].
In relay sequence, if power is supplied and contacts A and B, and D and E
closes at the same time, output C and F is activated and whichever was quicker to
react is activated first. In contrast, C will be activated prior to F according to the
execution order in PLC.
To further looking at the difference between PLC and relay, refer to Figure 2-6(b),
where supply of power closes the contact J, which activates H and blocks activation
of I in Relay sequence. In PLC, however, closure of G causes I to become active
and closure of J causes H to become active on the first execution. In the second
execution, the output of I is cleared by H, which has been activated during the first
execution.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
3. Stop Output
www.ed.co.kr
The Basics of PLC
Start
Operation Flow
I/O Allocation
NG
Review
Test
OK
Store in floppy disk, PROM,Type
HDD.flash Memory Store Program
Operation
www.ed.co.kr
The Basics of PLC
3-1. PC Requirements
The following is the hardware and software required to run GMWIN.
2) Serial Port
In order to utilize the full functionality of GMWIN and connect with PLC, there
needs to be at least two serial ports available.
5) Mouse
A Microsoft Windows compatible mouse is required in order to use all the features of
GMWIN.
6) Printer
A Microsoft Windows compatible printer is required in order to print in GMWIN.
7) Microsoft Windows
Windows 95/98 or a later version is required.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
A setup dialog box with a welcome message appears. Any other application is
recommended to be closed during the installation process.
www.ed.co.kr
The Basics of PLC
A dialog appears, showing the path of the folder where the program will be
installed. To install at a different folder, click the button to choose an
other folder. To stop the installation procedure, press the button at any
stage of the installation. In this case, GMWIN will not be able to be launched
since the installation was aborted. Click to move to next step.
Files will start to be copied from the CD-ROM to the hard disk.
Before you can use the GMWIN, you must restart your computer.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
2) GMWIM start window will appear as below. Click New Project in Project menu as
in [Figure 4-2].
3) Project
In the New Project window, project file name is the name specified by the user and
if it is not specified, it takes the default project name automatically. PLC type should be
set to the type of PLC which will be used. In addition, Writer and Comment are only
auxiliary information of the project, so they can be omitted. Refer to [Figure 4-3].
www.ed.co.kr
The Basics of PLC
4) Define Program
[Figure 4-4] shows the Define Program window. Although the user can specify a
name for the program, but since cases may arise that the remembering the instance
name to open the file for executing, therefore we recommend to use the default name.
The task button of the select condition for run is used do define the condition under
which the execution should take place, and Scan program, which executes regardless of
the condition, should be selected in this case. It is convenient to give the same name
for the program file as the project name, and for existing program, click the Find button
and choose the desired file. (Files with different extension are generated during compila-
tion and it is difficult to distinguish the files if the project name and the program name
differ.)
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
5) Program
[Figure 4-5] shows the window for selecting the language used in the program, where
the most convenient one of SFC, LD, and IL should be selected. In this chapter, LD
(Ladder Diagram) will be used.
www.ed.co.kr
The Basics of PLC
-----Menu
--Toolbar
LD Program
Window
Project
Window
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Direct Variables Comments comments list used for the Direct Variables.
High Speed Link Parameters describes the contents of the high speed link parameters.
www.ed.co.kr
The Basics of PLC
4-4. LD Edit
LD program displays PLC program with graphic symbols used in relay logic diagrams.
As shown in the figure below, 'rung comment' contains the description of the corre-
sponding rung. Rung refers to the vertically linked line formed by consecutive rows, as
Row 1 to Row 4 in the example figure below, which form a rung, and row 5, is also
forms a another rung.
Function Block
Label Rung Comment Function
Row No.
Coil
Rung
Subroutine
Call
Contact
Vertical Link
Subroutine
Program
In the above figure, the {END} in Row 7 serves to mark the end of the main
program. The rung named Abnomal process is a form of a subprogram(subroutine pro-
gram), and the subroutine is called in Row 5.
Selecting any element form the toolbar will change the mouse cursor to the same
shape as the chosen element. Move the mouse pointer to the desired point and click to
create a element for LD program.
www.ed.co.kr
The Basics of PLC
4-5. Upload
Upload the program to the GMWIN from the PLC after storing the compressed proj-
ect file and source file in the RAM or flash memory of the PLC.
www.ed.co.kr
The Basics of PLC
2) Writing to PLC
Choose the upload program when writing to PLC.
Choose Online - Write from the menu.
In the write dialog, choose the parameter, the program and upload program.
www.ed.co.kr
The Basics of PLC
4-6. Menu
1) Project
Command Description
New Project Creates a project.
Open Opens a existing project.
Upload Project From PLC Uploads a project and program in the PLC.
Export Proiect Bundle Bundles all files connected to the project as one file.
www.ed.co.kr
The Basics of PLC
2) Program
Command Description
New Program (N) Creates a program.
Open (O) Opens a existing program.
Save (S) Saves the program.
Save As Saves the program as a different name.
Close Closes the program.
Properties Changes the programs properties.
Local Variables Edits local variables.
For functions and function blocks, edits input/output
In/Out variables
Variables.
3) Edit
Command Description
Cancels the last action at the program edit window,
Undo (Ctrl+Z)
and returns back to the previous screen.
Redo (Y) Restores the edit-canceled action again.
Deletes the selected item, and copies it to the
Cut (X)
clipboard.
Copy (C) Copies the selected item to the clipboard.
Paste (V) Copies the clipboard contents to the edit window.
Delete (Del) Deletes the selected item.
Find (F) Finds out the desired string.
Finds out the desired string, and replaces it to new
Replace (H)
one.
www.ed.co.kr
The Basics of PLC
4)View
Command Description
Tool Bar The user defines the toolbox.
Status Bar Shows or hides the status line.
Enlarges the scope to indicate the program windows to
Full Screen
the overall screen.
Project Shows or hides the project window.
Result Shows or hides the result window.
Variable Monitor Shows or hides the variable monitor window.
I/O Monitor Shows or hides I/O monitor window.
Link Parameter Shows or hides link parameter window.
Zoom Enlarges or reduces the screen.
5) Compile
Command Description
Compile Compiles the program.
Compiles all the programs in the project, and create a
Compile All
PLC execution file.
Allows users to see the used global and direct
Memory Reference
variables.
Show Used I/O Shows I/O use global variable or direct variable.
Check Double Coils Shows the used doubles coil.
Previous Message Moves to the previous message position.
Next Massage Moves to the next message position
www.ed.co.kr
The Basics of PLC
6) Online
Command Description
Connect + Write + Connects to the PLC specified through the GMWIN
Run + Monitor On and options, writes the program a user creates to the
[Ctrl+R] PLC and changes to the monitoring mode.
Connects to the PLC specified through the GMWIN
Connect
and options.
Read Reads the PLCs data.
Write Writes the GMWINs program to the PLC.
monitor On/Off Start/finishes program monitoring.
Run Converts PLC mode.
Stop
PLC Sleep
Monitor Debug
Master
Convert Converts CPU to communicate in GM1.
Data Clear Clears PLC data as "0".
Reset Resets PLC.
Reset
Overall
Resets all data of CPU.
Reset
Read Reads flash memory type information installed in CPU
Type or writes data to flash memory.
Write
Flash Program
memory
Set Mode is only available in GM4-cpu. If the mode is
Set Mode set executing code is written in flash memory.
Base
Units
www.ed.co.kr
The Basics of PLC
Command Description
I/O Info Shows/Writes PlC I/O Configuration Status.
Matches PlC I/O Configuration With Project & PLC
I/O
Modules I/O
Synchronization
Mnet
Inputs Mnet Parameter.
Parameter
www.ed.co.kr
The Basics of PLC
7) Debug
Command Description
Changes to the debug mode, (Begin debugging the
Begin/End Debug
program / Stops debugging the program.)
Go(Ctrl+F9) Run to the break point.
8) Tools
Command Description
Library Manager Edits library.
www.ed.co.kr
The Basics of PLC
9) Windows
Command Description
New Window Opens New Window Against Current Window.
Cascade Cascades The Several Windows Of The GMWIN.
Tile Horizontally Tiles The Several Windows Of The GMWIN Horizontally.
Tile Vertically Tiles The Several Windows Of The GMWIN Vertically.
Arrange Icons Arranges Icons In The GMWIN.
Close All Closes All The Windows In The GMWIN.
10) Help
Command Description
GMWIN Help Opens GMWIN helpdesk.
Connects to LG industrial systems homepage by
LGIS Homepage
internet.
About GMWIN Displays GMWIN information.
www.ed.co.kr
The Basics of PLC
4-7. Toolbar
The following is the GMWIN toolbar.
GMWIN provides frequently used features as toolbar. Choosing the desired tool with
the mouse will execute the feature, as described in the chart below.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Run to
runs to the cursor location.
Cursor
Insert/
Remove inserts or removes the breakpoint.
Breakpoint
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
The following types of files are created when the user generates PLC executable file
by creating a project and editing a program.
* . PRJ : The project file created by the user
* . BN0 : PLC executable file
* . MON: File containing the information for monitoring
* . CR0 : Generated when PLC executable file is created.
* . SRC : Program file created by the user
* . ASV : Periodical auto-save file of the program
* . OP? : Generated on program compilation (Program block)
* . OB? : Generated on program compilation (Function block)
* . OF? : Generated on program compilation (Function)
www.ed.co.kr
The Basics of PLC
1) Opening a project
Select Project - Open from menu.
2) Opening a program
Select Program - Open from menu.
Choose the drive and directory in order to find the location of the file in the list
box.
Enter the file name directly or choose from the list box.
Choose the types of files to show from the File Type.
Project File : .PRJ Program File: .SRC
Click the Open button.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
2) Saving a project
Select Project - Save from menu.
3) Saving a program.
(1) Select Program - Save from the menu.
(2) Choose from the list box the drive and directory location to save the file.
(3) Enter the desired file name in the file name field.
Enter PRJ for proiect files and SRC for program files as the extension.
(4) Click the Save button.
www.ed.co.kr
The Basics of PLC
6) Closing File
(1) Method 1: Double-click the adjustment menu at the top-left corner of the win
dow to close.
(2) Method 2
Closing Project
Choose Project - Close from menu.
Closing Program
Choose Program - Close from menu.
www.ed.co.kr
The Basics of PLC
In the first method of direct variables, the user does not need to name the variable,
but a memory location identifier predefined by the maker is used, where as in the sec-
ond method of named variables, the user assigns the name to be used as the identifier
1) Direct Variables
There are %I, %Q input and output variables and %M internal memory variables for
direct variables.
Direct variables always starts with the percent character(%), followed by location pre-
fix and size prefix and one or more unsigned integer, delimited by periods.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Input % I X 0. 0. 0
Output % Q X 0. 3. 0
Represents the contact point number of the I/O module
Takes value between 0 and 63.
Represents the slot number of the slot on which the I/O
module is installed. Takes value between 0 and 7.
Base number : Takes value between 0 and 3.
EX) %IX0.0.3 : Direct variable, input, 1 bit, base 0, slot 0, contact point 3
%QX0.2.7 : Direct variable, output, 1 bit, base 0, slot 2, contact point 7
www.ed.co.kr
The Basics of PLC
%MB200
Byte(8bit) Address 7 6 5 4 3 2 1 0
%MX1603
Bit Address %MB200.3
%MW100.3
2) Named Variable
The user needs to declares the name and the type of the named variable when using.
The name of the variable can be up to 16 characters in length(English), in case of
KOREAN & characters are available.
KOREAN Alphanumeric characters and underscore(_) can be used together.
There is no distinction between capital and lower case letters and all characters
are considered to be capital letters. The name may not contain spaces.
www.ed.co.kr
The Basics of PLC
(3) Data Type of Named Variables (Represents the property of the data)
Data types are categorized into numerical type (ANY_NUM) and bit state
(ANY_BIT).
The most common numerical type is the integer (INT) which can be used for
counting and arithmetic operations.
Examples of integer includes the current value of a counter and A/D (analog input)
conversion value.
Bit state includes BOOL(Boolean: 1 bit), BYTE(8 bits), WORD(16 bits), which
represents ON/OFF state and is used for logical operations.
Examples of bit state includes the ON/OFF state of input switch, the illumination
state of output lamp.
Since BCD is 4-bit binary code representation of decimal number, it is essentially
bit state (ANY_BIT).
Arithmetic operations cannot be done on bit state type as it is, but it is possible,
using type conversion function.
www.ed.co.kr
The Basics of PLC
Data Size
Category Type Meaning (bits) Range
-1.797693110308 ~ -4.940656410-324
LREAL Long Real Numbers 64
4.940656410-324~1.797693110308
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
As Data type is a very important issue, it will be covered in more detail with
some examples. Much caution should be taken in using these data types for
sequence control, arithmetic operation and logical comparison and conversion, etc.
www.ed.co.kr
The Basics of PLC
Operation Start
END
www.ed.co.kr
The Basics of PLC
2) PAUSE Mode
The execution of the program is paused. If the mode is changed back to RUN mode,
the operation continues after the state is restored to the state immediately before
stopping.
www.ed.co.kr
The Basics of PLC
3) STOP Mode
The program execution is stopped. Only in remote STOP mode is program transfer by
GMWIN possible.
4) DEBUG Mode
Used to find bugs in the program or follow the line of execution. Switching to this
mode is only possible at the STOP state. The execution status and data content can be
verified in this mode.
www.ed.co.kr
The Basics of PLC
PLC continues to operate without any delay, when switching from remote RUN mode
to local run mode by the mode key.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
1) Cold Restart
(1) Executed if the parameter restart mode is set to cold restart.
(2) All data is cleared to be 0, while variables with specified initial values are
initialized to the preset value.
(3) Even if the parameter is set to warm restart, the first run after any change has
been made to the program will cause to restart in cold mode.
(4) If the manual reset button is pressed while operation (same as issuing a reset
command through GMWIN), a cold restart takes place regardless of the parameter
setting.
2) Warm Restart
(1) Executed if the parameter restart mode is set to warm restart.
(2) Variables declared to preserve previous value retains the current value, while
variables with only initial values specified is initialized to the value. All other
variables are initialized to 0, clearing any previous content.
(3) Even if the parameter is set to warm restart, the first operation after a program
download or a halt caused by error is always a cold restart.
(4) Even if the parameter is set to warm restart, a cold restart will take place in case
the data has any abnormality (data is not preserved in case of power failure).
For variables with the option set to retain value in case of power failure
(VAR_RETAIN), the following set of rules is followed.
Parameter must be set as warm restart, in order to retain the value in case of
power failure.
If parameter is set as cold restart, it is initialized to the user-defined initial value
or to the basic default initial value.
Variables that is not declared VAR_RETAIN is always initialized to the
user-defined initial value or to the basic default initial value, for both cold
and warm restart.
www.ed.co.kr
The Basics of PLC
3) Hot Restart
(1) If and it is the run mode when power comes back on after being cut off during
a normal operation. the interval between the power off and on is shorter than the
maximum allowed time for hot restart, hot restart is performed.
(2) Execute after restoring all data and program execution elements to their previous
state.
(3) Since the program is executed in the state just before the power went off, the
continuity of program execution is ensured, even in cases of momentary power
failure.
(4) If the time exceeds the maximum allowed time for hot restart, it is restarted, cold
or warm, as defined in the parameter.
(5) In case of abnormal data (data is not preserved during power failure), a cold
restart is performed.
Variable
COLD WARM HOT
Mode
Retain
Default Initialize to 0 Initialize to 0
previous value
Retain
Retain Initialize to 0 Retain previous value
previous value
Initialize to user Retain
Initialize Initialize to user set value
set value previous value
Retain & Retain
Initialize to user set value Retain previous value
Initialize previous value
www.ed.co.kr
The Basics of PLC
Power On
STOP
Operation Mode STOP Mode
Abnormal
Operation Mode
timeout
Operation Mode
Within time
Cold Restart
Operation Mode
Warm Restart
Hot Restart
www.ed.co.kr
The Basics of PLC
1) Arrow ( )
Use arrow to move, edit, or delete contacts, coil, functions, function blocks etc.
2) Block Selection ( )
www.ed.co.kr
The Basics of PLC
Positive Transition detection contact detects the change of 0 to 1 and connects for
the duration of one scan. (Shortcut key + )
Click the icon for positive transition detection contact and move the cursor to
the desired place for editing and left click.
The horizontal and vertical lines are used to establish connection between two con-
tacts, contact and coil, or branch circuits, horizontally and vertically. (Shortcut key ,
)
Coil represents the output which is magnetized if the input from the left is ON, and
demagnetized if it is OFF. Reverse coil work in the opposite way, being magnetized if
the input from the left is OFF and demagnetized when the input is ON.
www.ed.co.kr
The Basics of PLC
In setting coil, the state of the boolean variable becomes ON when the input at the
left becomes ON and remains set state until it is reset by the RESET coil.
Reset coil is use to reset a coil which is at ON on state. (Shortcut key +, +
)
www.ed.co.kr
The Basics of PLC
Positive Transition detection coil stays ON for one scan after the rising edge of input
going from OFF to ON in the previous scan. Negative Transition detection coil stays
ON for one scan after the falling edge of input going from ON to OFF in the previous
scan.
www.ed.co.kr
The Basics of PLC
11) Function ( )
Basic functions include move function, type Transition function, comparison function,
arithmetic function, logical function, bit shift function, etc.
(1) Function immediately outputs the result of computation in one scan, and there is
only one result.
www.ed.co.kr
The Basics of PLC
(2) IN and OUT variables of the move function can have all kind of data types, but
the types of data must be a same type.
(3) IN1, (IN2), and OUT variables of arithmetic functions (ADD, MUL, etc) can only
take the numeric data type (ANY_NUM), and all data types must be the same.
(4) IN1, (IN2), and OUT variables of logical functions (AND, OR, etc) must be the
bit data type (ANY_BIT), and all types must be the same.
(5) IN and OUT variables of type Transition functions (INT_TO_BCD, BCD_TO_INT,
etc) is bound to be the assigned data type and the functions are placed in libraries
for use.
(6) Usage of the move function:
Function Description
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Function Description
A) Function
Converts the INPUT type and writes the output on OUT.
If IN contains data which is not a valid BCD value, the output is set to 0 and
_ERR (Arithmetic error flag) and _LER (Arithmetic error latch flag) are set to ON.
B) Program Application
Providing the BCD value 3333 as the input using %IW0.1.0 and setting
%IX0.0.0 to ON will cause to produce the integer converted value on the
output.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Function Description
A) Function
Converts the type of IN and writes the output on OUT.
Data
FUNCTION Content
Type
Appropriately converted If the input is in the
INT_TO_SINT SINT range -128~127, but for values out of this range
will cause error.
INT_TO_DINT DINT Convert to DINT type.
Appropriately converted If the input is in the
INT_TO_USINT USINT range 0~255, but for values out of this range will
cause error.
Appropriately converted If the input is in the
INT_TO_UINT UINT range 0~65535, but for values out of this range
will cause error.
Appropriately converted If the input is in the
INT_TO_UDINT UDINT range 0~4294967295, but for values out of this
range will cause error.
Takes the lowest 1 bit and converts it to BOOL
INT_TO_BOOL BOOL
type.
Takes the lowest 8 bits and converts it to BYTE
INT_TO_BYTE BYTE
type.
Convert to WORD type without modifying any
INT_TO_WORD WORD
bits.
Convert to WORD type by filling the highest bits
INT_TO_DWORD DWORD
with 0's.
Convert to LWORD type by filling the highest
INT_TO_LWORD LWORD
bits with 0's.
Appropriately converted If the input is in the
INT_TO_BCD WORD range 0~9999, but for values out of this range
will cause error.
www.ed.co.kr
The Basics of PLC
B) Error
In case of conversion error, _ERR (Arithmetic error flag), _LEE (Arithmetic
error latch flag) is set to ON.
C) Program Application
If forced variable 6666 is fed as the integer value when the input switch of
%I0.0.0, the BCD value for the 6666 is written to %QW0.2.0 and if the maximum
allowed integer value of 9999 or 16#270F is inputted to the INT_TO_BCD
function, the BCD value of 16#9999 is written to %QW0.2.1.
www.ed.co.kr
The Basics of PLC
Function Description
A) Function
If the condition IN1 IN2 IN3... INn holds true for the inputs, 1 is
produced for OUT. If not, OUT becomes 0,
www.ed.co.kr
The Basics of PLC
B) Program Application
(a) If the execution condition %IX0.0.0 is ON, GT function executes.
(b) If the input variables carry the values IN1=300, IN2=200, IN3=100, IN1 IN2
IN3 is true, so the output %QX0.3.0 becomes 1.
Function Description
www.ed.co.kr
The Basics of PLC
A) Function
If the relationship IN1 IN2 IN3... INn (n: the number of inputs) holds true
for the inputs, OUT is set to 1. Otherwise, OUT is set to 0.
B) Program Application
(a) GE function operates if the activation condition %IX0.0.0 is set to ON.
(b) Assuming the inputs are set to IN1=300, IN2=%IW0.0.1, IN3=100, the output
%QX0.3.0 is set to 1, since result of the comparison checks that IN1 IN2
IN3 holds true, that is, if the value of IN2 is greater than or equal to 100, or
if it is less than or equal to 300, %QX0.3.0 is set to 1.
www.ed.co.kr
The Basics of PLC
E. EQ (Equal to comparison)
Function Description
A) Function
If the condition IN1 = IN2 = IN3... = INn (where n is the number of inputs)
holds true for the inputs, OUT becomes 1. If not, OUT becomes 0.
B) Program Application
If BCD_TO_INT function is executed when %IX0.0.0 is ON, and %QX0.3.0
becomes 1 only if IN3 (%IW0.0.1) within is 300.
www.ed.co.kr
The Basics of PLC
A) Function
If the condition IN1 IN2 IN3... INn (where n is the number of inputs)
holds true for the inputs, OUT becomes 1. If not, OUT becomes 0.
B) Program Application
If BCD_TO_INT function is executed when %IX0.0.0 is ON, and %QX0.3.0
becomes 1 only if IN2 (%IW0.0.1) is between 100 and 300 inclusive.
www.ed.co.kr
The Basics of PLC
A) Function
If the condition IN1 IN2 IN3... INn (where n is the number of inputs)
holds true for the inputs, OUT becomes 1. If not, OUT becomes 0.
www.ed.co.kr
The Basics of PLC
B) Program Application
If BCD_TO_INT function is executed when %IX0.0.0 is ON, and %QX0.3.0 be
comes 1 only if IN2 (%IW0.0.1) is between 101 and 299 exclusive.
www.ed.co.kr
The Basics of PLC
A) Function
If IN1 and IN2 is not compute to be equal, OUT becomes 1. If they are equal,
OUT becomes 0.
B) Program Application
If BCD_TO_INT function is executed when %IX0.0.0 is ON, and %QX0.3.0
becomes 0 only if IN2 (%IW0.0.1) is 300, and becomes "0" otherwise.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Since function block produces output accumulated through many scans, it requires
memory to hold the intermediate results during the computation. Consequently, instance
variable must declared for function block, similar to variables. Instance variable is the
collection of variables, and the most general types of function blocks are timer and
counter.
The user can creat function block and the created function block is added to
the collection of user functions.
Timer
www.ed.co.kr
The Basics of PLC
A) Function
(a) When the pulse input CU changes from 0 to 1 (rising edge), the value of
CV is incremented by one.
(b) However, CV never exceeds the integer value of 32767.
(c) If the reset input R is set to 1, CV becomes 0, that is, it is cleared.
(d) Output Q gives 1 if CV is greater than PV.
B) Time Chart
R(Reset Input)
Maximum Coefficient (32767)
CU(Up Count Input)
PV (Preset Value)
CV(Current Value)
Q(Counter Output)
C) Program Example
(a) Since CTU is a function block, instance variable must be declared in order to
hold the intermediate results.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
B. CTD
Down Counter
Function Description
A) Function
(a) When the pulse input CD changes from 0 to 1 (rising edge), the value of CV
is decremented by one, where the smallest possible integer value CV is allowed to
take is -32768.
(b) If the load input LD is set to 1, the preset value in PV is loaded into CV.
(d) Output Q gives 1 if CV is less than or equal to 0.
www.ed.co.kr
The Basics of PLC
B) Time Chart
LD (Load Input)
C) Program Example
(a) Since CTD is a function block, instance variable must be declared in order to
hold the intermediate results.
(b) On declaration of a CTD instance variable in the program, the variablesinstance
name Qfor counter output, andinstance name, CVfor current value are
automatically created in this operation.
(c) Declares the instance variable of (CTD (for Example, C2).
(d) Preset value is set to 10.
(e) On the initial pressing of %IX0.0.2, LD becomes 1 and PV(preset valve) is
loaded to current value.
(f) If rising edge pulse is introduced into CD by the toggle switch 0(%IX0.0.1), the
current value of input is decremented.
(g) If the current value is less than 0, the counter Output (C2.Q) becomes 1 and
the lamp (%QX0.3.0) lights up.
(h) If the toggle switch 1(%IX0.0.2) is turned ON, LD becomes 1 and the preset
value is loaded to CV again.
www.ed.co.kr
The Basics of PLC
C. CTUD
Up Down Counter
Function Description
A) Function
(a) CTUD is a counter where the current value CV increments by one if the CU
goes from 0 to 1 and decrements by one if the CD goes from 0 to
1, where the current value CV must be between the integer values -32768
and 32767.
(b) If the load input contact LD becomes 1, the PV is loaded to current value CV.
(CV=PV)
(c) If 1 is asserted on the reset input R, the current value CV is cleared to 0.
(CV=0)
www.ed.co.kr
The Basics of PLC
A) Time Chart
LD(Load Input)
R(Reset Input)
CU(Up Count Input)
CD(Down Count Input)
PV(Preset Value)
CV(Current Value)
QU(Count Up Output)
QD(Count Down Output)
C) Program Example
(a) Since CTUD is a function block, instance variable must be declared in order to
hold the intermediate results.
(b) On declaration of a CTUD instance variable in the program, the instance variables
automatically created:(instance name).QUfor the up count,(instance name).
QDfor down count, and(instance name).CVfor current value.
(c) Declares the instance variable of CTD(for Example, C3).
(d) Preset value is set to 10.
(e) If rising edge pulse is introduced into CU using the toggle switch %IX0.0.0, the
current value of input is increased.
(f) If rising edge pulse is introduced into CD using the toggle switch %IX0.0.1, the
current value of input is decremented.
(g) If the current value is greater than or equal to PV(preset value), C3, QU be
comes 1 and %QX0.3.0 is set to 1.
www.ed.co.kr
The Basics of PLC
A) Function
(a) The time elapsed after IN became 1 is output to ET.
(b) If IN becomes before the ET reaches the preset time, ET is set to 0.
(c) If IN becomes 0 after Q becomes 1, Q is set to 0.
www.ed.co.kr
The Basics of PLC
B) Time Chart
IN
Q
PT
Preset Time
ET
C) Program Example
(a) Since TON is a function block, instance variable must be declared in order to
hold the intermediate results.
(b) On declaration of a TON instance variable in a program, variables are automati
cally created:(instance name).Q, for the timer output and(instance name).
ETfor elapsed time.
(c) Declare a instance variable for TON, for example named T1.
(d) Set the PT preset timer for T1 as 5 seconds (T#5S).
(e) If the activation switch %IX0.0.0 is turned ON, the elapsed time (T1.ET) is
displayed on the digital indicator.
(f) If the elapsed time T1.ET reaches 5 seconds, the timer output T1.Q becomes ON,
making the outputs %Q0.2.0 "1" and %Q0.2.1 0.
(g) After switching T1.Q ON, switching OFF the activation switch (%IX0.0.0)
makes T1.Q OFF.
www.ed.co.kr
The Basics of PLC
A) Function
(a) Asserting 1 for IN sets Q to 1 and the time elapsed since IN becoming 0
exceeds the time set in PT, Q becomes 0.
(b) The time elapsed since IN becoming 0 is output to ET.
(c) If IN becomes 1 before ET reaches the preset time, elapsed time is reset to 0.
B) Time Chart
IN
Q
PT
Preset
Time
ET
www.ed.co.kr
The Basics of PLC
C) Program Example
(a) Since TOF is a function block, instance variable must be declared in order to hold
the intermediate results.
(b) On declaration of a TON instance variable in a program, variables are automati
cally created:(instance name).Q, for timer output and(instance name).ETfor
elapsed time.
(c) Declare a TOF instance variable, for example named T2.
(d) Set the timer T2 to 3 seconds (T#3S).
(e) Setting the activation switch %IX0.0.0 to ON makes the timer output T2.Q
to become ON.
(f) Setting the activation switch %IX0.0.0 to OFF causes the elapsed time T2.ET to
be displayed on the digital indicator.
(g) If the elapse time T2.ET reaches the preset time of 3 seconds, timer output
T2.Q becomes OFF.
www.ed.co.kr
The Basics of PLC
F. TP (Pulse Timer)
Function Description
A) Function
(a) Asserting 1 for IN sets Q to 1 for the preset amount of time and goes back
to 0 when ET reaches PT.
(b) Elapsed time ET starts increment when IN becomes 1 and remains still once it
reaches PT until it is reset to 0 as IN becomes 0.
(c) Even if IN changes to 0 and back to 1, it will have no effect while ET
is being incremented.
B) Time Chart
IN
Q
PT
Preset Time PT
ET
C) Program Example
(a) Since TP is a function block, instance variable must be declared in order to hold
the intermediate results.
www.ed.co.kr
The Basics of PLC
D) Program Example
13) Return ( )
www.ed.co.kr
The Basics of PLC
Double-click the icon and enter ABC for the label name.
www.ed.co.kr
The Basics of PLC
Program Example
(1) Subroutine
Choose from the toolbar.
Move the mouse cursor to the desired position in the LD program window and
left click.
Choose and double-click the created subroutine LD and enter ABC as the
label name.
(3) Label
Place the cursor at the location to be called after the END command and
double-click.
Choose the label in the Label / Rung Description / End of Main Program dialog
box.
Name the label as ABC in the Add Label dialog. (Maximum label length: 16
characters)
www.ed.co.kr
The Basics of PLC
Arithmetic
Switch Input Result
(Assumption)
Positive
1 scan Positive 1 scan
Transition
Transition
Detection
Detection Coil
Contact
Negative Negative
Transition 1 scan 1 scan
Transition
Detection Detection Coil
Contact
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Data transfer
Move
MOVE IN 1: data source (any type)
Function
OUT: data line (any type)
www.ed.co.kr
The Basics of PLC
Add function
ADD IN1 ~ IN8: operands (Any_INT)
OUT: result (Any_INT)
Subtract function
IN1: value to be subtracted from
SUB (Any_INT)
IN2: subtracting value (Any_INT)
OUT: result (Any_INT)
Multiply function
MUL IN1 ~ IN8: operands (Any_INT)
OUT: result (Any_INT)
Division (remainder)
IN1: dividend (Any_INT)
MOD
IN2: divisor (Any_INT)
OUT: remainder (Any_INT)
Exponential function
Only for
IN1: base (Any_REAL)
EXPT GM1,GM
IN2: exponent (Any_REAL)
2
OUT: result (Any_REAL)
Absolute value
ABS IN1: integer (Any_INT)
OUT: result (Any_INT)
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Logical AND
AND IN1 ~ IN8: operand (Any_BIT)
OUT: result (Any_BIT)
Logical
Operators
Logical OR
OR IN1 ~ IN8: operand (Any_BIT)
OUT: result (Any_BIT)
www.ed.co.kr
The Basics of PLC
Exclusive OR
XOR IN1 ~ IN8: operand (Any_BIT)
OUT: result (Any_BIT)
Logical
Operators
Logical Negation
NOT IN1, IN2: operand (Any_BIT)
OUT: result (Any_BIT)
Select from 2
G : output selector (BOOL)
IN1: value to be chosen when
SEL G is off (Any)
IN1: value to be chosen when
G is on (Any)
OUT: output value (Any)
Maximum
IN1~IN8: candidate values
MAX
(Any_NIT)
OUT: maximum value (Any_INT)
Selection
Functions
Minimum
IN1~IN8: candidate values
MIN
(Any_NIT)
OUT: minimum value (Any_INT)
www.ed.co.kr
The Basics of PLC
Comparison function
IN1 ~ IN8: data to compare
(Any)
GT(>)
OUT: output (BOOL)
If IN1>IN2>...IN7>IN8 is
satisfied, OUT is set to ON
Comparison function
IN1 ~ IN8: data to compare
(Any)
GE()
OUT: output (BOOL)
If IN1IN2...IN7IN8 is
satisfied, OUT is set to ON
Comparison
Functions
Comparison function
IN1 ~ IN8: data to compare
(Any)
EQ()
OUT: output (BOOL)
If IN1IN2...IN7IN8 is
satisfied, OUT is set to ON
Comparison function
IN1 ~ IN8: data to compare
(Any)
LE()
OUT: output (BOOL)
If IN1IN2......IN7IN8 is
satisfied, OUT is set to ON
www.ed.co.kr
The Basics of PLC
Comparison function
IN1 ~ IN8: data to compare
(Any)
LT(<)
OUT: output (BOOL)
If IN1<IN2<...<IN7<IN8 is
satisfied, OUT is set to ON
Comparison
Functions
Comparison function
IN1 ~ IN8: data to compare
(Any)
NE()
OUT: output (BOOL)
If IN1IN2 is satisfied, OUT is
set to ON
String length
LEN IN1: input string (STRING)
OUT: string length (INT)
String
Functions Extract substring from the right
IN: input string (STRING)
RIGHT L: length to extract (INT)
OUT: string output (STRING)
www.ed.co.kr
The Basics of PLC
String concatenation
Sequentially concatenates the
input strings
CONCAT
IN1 ~ IN8: input strings
(STRING)
OUT: string output (STRING)
Insert string
IN1: string input (STRING)
INSERT IN2: string to insert (STRING)
P: insert position (INT)
OUT: string output (STRING)
Delete string
IN1: string input (STRING)
DELETE L: string to delete (INT)
String P: delete position (INT)
Functions OUT: string output (STRING)
Replace string
IN1: string input (STRING)
IN2: string to be replaced with
REPLACE
(STRING)
P: replace position (INT)
OUT: string output (STRING)
Find string
IN1: string input (STRING)
FIND
IN2: search string (STRING)
OUT: string output (INT)
www.ed.co.kr
The Basics of PLC
Time Addition
IN1: Time of day or time
(TIME, TOD, TD)
ADD_TIME
IN2: Time to subtract (TIME)
OUT: Result time of day or time
(TIME, TOD, TD)
Time Subtraction
IN1: Time of day or time
(TIME, TOD, TD)
SUB_TIME
IN2: Time to subtract (TIME)
OUT: Result time of day or time
(TIME, TOD, TD)
Date Subtraction
IN1: Date (DATE)
SUB_DATE IN2: Date to subtract (DATE)
OUT: Result Time(TIME)
Date and
Time
Functions
Time of Day Subtraction
IN1: Time of day (TIME OF
DAY)
SUB_TOD
IN2: Time of day to subtract
(TIME OF DAY)
OUT: Result Time(TIME)
Time Multiplication
IN1: Input Time(TIME)
MUL_TIME
IN2: Multiplier (INT)
OUT: Result Time(TIME)
www.ed.co.kr
The Basics of PLC
Time Division
IN1: Input Time(TIME)
DIV_TIME
IN2: Divisor (INT)
OUT: Result Time (TIME)
Date and
Time
Functions
Concatenate date and time
IN1: Input date(DATE)
CONCAT_
IN2: Input time of dat (TOD)
TIME
OUT: Result Date Time (DT)
Block interrupt
DI REQ: Request for block (BOOL)
OUT: Confirm block (BOOL)
Allow interrupt
REQ: Request for allowance
EI
(BOOL)
OUT: Confirm allowance (BOOL)
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
On Delay Timer
IN: Activation signal (BOOL)
TON PT: Preset Time (TIME)
Q: Output (BOOL)
ET: Current Value
Pulse Timer
IN: Activation signal (BOOL)
TP PT: Preset Time (TIME)
Q: Output (BOOL)
ET: Current Value
Up Timer
CU: Pulse Input (BOOL)
R: Current Value Reset (BOOL)
CTU
PV: Preset Value (INT)
Q: Output (BOOL)
CV: Current Value (INT)
Counter
Function
Blocks
Down Counter
CD: Pulse Input(BOOL)
LD: Preset Value Read (BOOL)
CTD
PV: Preset Value (INT)
Q: Output (BOOL)
CV: Current Value(INT)
www.ed.co.kr
The Basics of PLC
Up-Down Counter
CU: Up Pulse Input (BOOL)
CD: Down Pulse Input (BOOL)
R: Current Value Reset (BOOL)
LD: Load Value Read(BOOL)
CTUD
PV: Preset Value(INT)
QU: Up Count Output (BOOL)
Counter QD: Down Count Output
Function (BOOL)
Blocks CV: Current value (INT)
www.ed.co.kr
The Basics of PLC
Input Output
A B R
0 0 0
0 1 0
1 0 0
1 1 1
www.ed.co.kr
The Basics of PLC
8-2. OR Circuit
OR circuit produces a output if any one of its inputs is on, and is also refered to as
parallel circuit.
As shown in [Figure 8-2], relay R is activated to illuminate the lamp, if push button
A is pressed or B is pressed, or if they are both pressed.
Input Output
A B R
0 0 0
0 1 1
1 0 1
1 1 1
www.ed.co.kr
The Basics of PLC
Input Output
A R
0 1
1 0
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
prohibit
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
The next LD program created by GMWIN representing another method using OFF de-
lay timer.
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
Warm Based on the feature to alert the program power off event,
Restart resetting data and user program in a predetermined way.
%IX0.0.2
Direct Variable which does not require declaration of name or %QW1.2.1
Variable type. %I, %Q, %M area belong to this class. %MD1234,
etc
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
The Basics of PLC
www.ed.co.kr
www.ed.co.kr
www.ed.co.kr
ED-4260 PLC Trainer
3) Accessories
1 set of connecting cord (4)
1 AC power cord
1 RS-232C cable
2 set of 25pin connecting cable
1 training manual
www.ed.co.kr
ED-4260 PLC Trainer
www.ed.co.kr
ED-4260 PLC Trainer
www.ed.co.kr
ED-4260 PLC Trainer
Category Specification
Voltage: 0~24V (Continuous variable), 24V(fixed)
Current : 2A (MAX)
Regulation : 0.02% 1mV
DC OUTPUT Ripple : 0.02% 2mV
Voltmeter : DVM 3 digits
Current meter: AAM
DC output protection: current protector
Voltage: 220V (fixed)
Current: 1A (Max.)
AC OUTPUT Terminal: safe connector type
Circuit protection: electronic excessive current shutoff (Reset )
Voltmeter: DVM 3 digits
16 toggle Switches : (input selectable) 4 terminal output
2 push button Switches
Input control signal
1 2-way switch
(With Input Module)
4 digital switch, 1set of 25pin connector
2 HSC Pulses, 1 stepping Motor control pulse
16 lamps for DC 24V 8
2 lamps for DC 24V 16
Output device
Output Simulation 1 set of binary counter 4digits
(With Output Module 1 buzzer for DC 24V
& Simulator Module)
1 stepping motor
2 DC motors
32-bit input, 8 COMs
I/O terminal
32-bit output, 8 COMs
Input voltage AC 220V 50/60Hz
Modules Number 3 basic module
Module Size 250(W) 65(H) 166(D)mm
System Size 760(W) 352(H) 437(D)mm
Weight (System) 34 kg
www.ed.co.kr
ED-4260 PLC Trainer
The demonstration frame is basically equipped with one PLC input control module
(IM-4260-2), one output monitor module (OM-4260-3), and one position control module
(PM-4260-4). Also, it includes power supply module for input and output control.
Although the PLC unit has one power supply unit, that is only for circuit operation of
each unit in PLC.
www.ed.co.kr
ED-4260 PLC Trainer
In [Figure 2-3], the PLC consists of one I/O unit and one demonstration frame
terminal. The units after the power unit and the CPU unit that have PLC base slots as
in [Figure 2-2] are for installation of the I/O unit and various optional units. Each slot
has an assigned unique number. The unique numbers are the unique addresses for I/O of
all units.
Extension Connector
In PLC trainer ED-4260, slot 0 and 1 are reserved for input unit, slot 2 and 3 are
for output unit. The rest of slots are for option units. The input & output of these units
should directly connect to the slots.
[Figure 2-4] shows connection circuit of the PLC input unit and the demonstration
frame terminal. The input terminal unique numbers for slot 0 are 1st 8 bits from 000 to
007 and the next 8 bit from 008 to 015, and all are 16 bits. Input unit addresses for
slot 1 are from 100 to 107 and from 108 to 115, that are 16 bits.
Note that COM port terminals are separated common terminals by 8 bits
www.ed.co.kr
ED-4260 PLC Trainer
PLC
PLC Power CPU Input
Unit Output
Unit Option Unit
Unit()
Unit (Internal) Unit (Slot 0~1) (Slot 2~3) (Slot 4~7)
Upper
Line : 000~007
: 000~007 Upper
Line : 100~107
: 100~107 Upper
:Line : 200~207
200~207 Upper: Line
: 300~307
300~307
Line
Lower : 008~015
: 008~015 Line
Lower : 108~115
: 108~115 :Line
Lower 208~215
: 208~215
Lower: Line
308~315
: 308~315
www.ed.co.kr
ED-4260 PLC Trainer
(32 point)
[Figure 2-4] Diagram of PLC input unit and connection of frame terminal
(1) DC output
Output voltage: 0~24V (variable), 24V (fixed)
Ripple voltage: 0.02% + 2mV
Voltage regulation: 0.02% + 1mV
Output current: 0~2A (continuous variable)
Output protection: Constant current protector
(2) AC output
www.ed.co.kr
ED-4260 PLC Trainer
[Caution]
Make sure not to contact any conductive objects to human body since the output of
AC is high voltage (220V), and must use a safe plug cord.
Also when connecting the power supply, make certain to turn off the switch.
AC/DC Voltage
Ammeter Voltmeter Display Selection AC O/L Overload
AC
Indication
RESET
Power Switch
PLC Power
Output Terminal
(220V)
DC Output
Current PLC
Adjustor Power Switch
www.ed.co.kr
ED-4260 PLC Trainer
Frame
Terminal
(External Power)
Frame
(External Power) Terminal
www.ed.co.kr
ED-4260 PLC Trainer
Input Connection
(25P
Output Connection
(25pin Connecting
) (25pin(25P
Connecting
Cable) )
Cable)
www.ed.co.kr
ED-4260 PLC Trainer
As shown in [Figure 2-8], 4 digit 4 digital switches connected with 4 bits each to
0~3, 4~7, 8~11, and 12~15 respectively are controlled.
[Caution] When the digital output is connected to input of slot 0 with 25pin con-
nection cable, users can not use 000~015 terminal on demonstration frame at the same
time.
Digital
Digital
Switch
Intput
Module's
25pin
25pin Connector
Frame
Frame's
25pin Connector
25pin
PLC Unit
To PLC
Input Unit
[Figure 2-8] Circuit diagram of digital switch on input module
[Figure 2-9] shows the connection circuit of each 16-bit (0~15) toggle switch
Toggle Switch
4
4 Terminal
of Input Module
DC 24V DC 24V
(External Power) (External Power)
4 Terminal
4
of Frame
www.ed.co.kr
ED-4260 PLC Trainer
The following is electric specifications of input unit of PLC unit (GLOFA-GM4) used
in ED-4260.
Model of Input unit G41-D22A
Input points 16 bits
Rated Input voltage DC 12/24V
Rated Input current DC 5/11mA
Operation voltage ON: higher than DC 9.5V
OFF: lower than DC 6V
Response time less than 10ms
Common type 8 bits/ 1 COM.
Input insulation Photo coupler
Internal current consumption Appox. 70mA with DC 5V
Intput Digital
Switch(4Digit)
COM Terminal
COM
Button Switch
(0~7)
output terminal
COM Terminal
COM Input push button
(8~15) Switch and Terminal
(0~7)
www.ed.co.kr
ED-4260 PLC Trainer
2) Output module
An Output module (OM-4260-3) consists of 16 output monitor lamps, 2 special output
lamps, one alarm buzzer, and 4-digit LED display, and it allows output simulation for
PLC training. Each of 4-digit displays is independently connected to display BCD value,
The connection to digital display(7-segment) is that a 25pin connection cable is con-
nected to one of PLC output units as shown in [Figure 2-12]
Output Lamp
Output
Module's
4
4 Terminal
(External Power) (External Power)
Frame's
4
4 Terminal
LED Display
(BCD dfd
(Decoder Built in)
25pin Connector
25P
of Output Module
25pin
Frame
Connector
25P of Frame
PLC Unit
To PLC
Input Unit
[Figure 2-12] LED display circuit diagram of output module
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 2-11] depicts that common lamp COMs are separated into COM1, which is
lamp 0~7 and COM2, which is lamp 8~15. Output load monitor lamps of Output mon-
itor module OM-4260-3 is for DC 24V.
Numeric LED displays (7-segment) as shown in [Figure 2-12] also are separated into
COM terminal 0~7 and 8~15 or connected to COM terminal in case of need. Things to
keep in mind is it seems that 4 bits as depicted in the figure is directly connected to
LED, but are displayed via BCD to 7 segment LED decoder.
The following are the electric specifications of output unit of PLC (GLOFA-GM4) on
ED-4260.
Model of Output unit G4Q-RY2A
Output points 16 Points
Rated load Voltage DC 24, AC 220V
Rated load Current Lower than 1A (with DC 24V)
Response time Less than 12ms
Common type 8 bits in 1 COM
Operation indication LED display
Surge protector Varistor
Internal current consumption lower than 100mA at DC 5V
www.ed.co.kr
ED-4260 PLC Trainer
Indication
Lamp Lamp Buzzer Input
Digital LED Display
(25pin)
Connector) (4 Digit)
COM
Terminal
Monitor
Load
(0~7)
Lamp(0~15)
COM Terminal
(8~15) Monitor
Input Terminal For
Lamp
Load Monitor Lamp
www.ed.co.kr
ED-4260 PLC Trainer
Sensor-2 DC Power
DC
Rotator
Output Terminal Input
Terminal
Rotator
DC Motor
Input Terminal
Sensor-1
Output
Terminal Stepping
Motor
A&B Phase
Input Terminal
Linear
Motion Linear
Motion
Input
Terminal
Rod
Guide
Linear Motion
Right Detection
Linear Motion Micro
Micro Switch-2
Switch-2
Movement
Linear
Motion MS-1
Left Detection Linear
Motion
Micro Switch-1 Output Terminal
Micro Switch-1 Motor MS-2
Output Terminal
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 2-15] shows components that comprise the rotation position control system
with the DC motor and the stepping motor on the position module. In (a) of [Figure
2-15], there are 2 sensors on the rotation disk. Of them, sensor1 is used for detection of
zero position, and the other one is for position constant sensor that can stop the motors
at a desired position. And (b) of the figure is a rotating system that can control the
RPM and position control by means of the stepping motor. The stepping motor in 2
phase is of position control accuracy up to 1.8/step. The sensor 3 in the rotation sys-
tem is for detecting 0 position which is initial position.
[Reference] The outputs of sensor 1~3 that are open collector type non-contact
switches, so be cautious of pole. The green collector should be connected
to (+) pole, the black should be connected to PLC input and com of
PLC input should be connected to (-) of power supply. In case of
using the sensor, make sure that DC 24V is provided for a DC power
input terminal located in middle of top in this module.
Rotator
(a) DC motor and the sensor system (b) Stepping motor and the sensor system
[Figure 2-15] Position control module and sensor component diagram
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 2-16] shows the position control module for linear motion. One DC motor is
used, and 2 micro switches detect stop positions, on right and left.
[Note] This system has 2 limit switches on each end of right and left that prevent a
run-over of linear motion inside the module. Thus if over run, it automatically
stops.
Motor
Input
Greared Motor
Movement
www.ed.co.kr
ED-4260 PLC Trainer
Electrical specifications of the DC motor that does linear motion in the position con-
trol module are as follows.
Input voltage DC 24V
Input current Approx. 105mA
Field type Permanent magnet
Speed of Rotate 30 RPM (geared motor)
www.ed.co.kr
ED-4260 PLC Trainer
In an automatic control system, there should be data signals and error values that in-
dicate the current status for control. These signals are obtained from temperature, pres-
sure density, speed, length, weight, and other factors. Change rate of these factors are
generally indicated as electric signal, which is either voltage or current, or electric
resistor. These signals are in the form of analog in the most cases, if you need an auto-
matic control with the PLC, you need an A/D converter that converts analog signal to
digital signal (binary or BCD).
In an ED-4260 PLC trainer, an A/D converter(4260-AD) for GLOFA-GM4 can be in-
stalled on the PLC unit as an option, but we will give an explanation on the usage of
AD-4260-5 module and PLC application training for better conversion.
Because the converter module has variable current source for an analog input signal
training, and also can change the reference voltage and clock frequency, digital output
rate control on an analog input and featuring training on difference of conversion time
are possible. The following is a list of features on A/D converter.
Resolution 8 bits
Conversion time Approx. 100s~1ms
Analog input 0~10V
Digital output level 5V0.2V (at TTL level)
Clock frequency Approx. 100kHz~1MHz
Access time 150ns
DC output (for analog input) 0~15V
Input power AC 220V
www.ed.co.kr
ED-4260 PLC Trainer
2) Usage of AD-4260-5
www.ed.co.kr
ED-4260 PLC Trainer
Interrupt switch
Digital output Digital output connector
Output LED 8-bit digital output indicator
CLOCK FREQ. Clock frequency variable
TP-1 Reference voltage test point
REF.-ADJ Reference voltage variable
[Figure 3-2] shows the connection between AD converter module and input of PLC
unit with 25pin input connection connector of the frame
In the figure, the A/D converter has 8 bits, whereas PLC unit has 16 point. So put
the A/D converter connector into first 8 point(0~7).
www.ed.co.kr
ED-4260 PLC Trainer
Output module can be selected for PLC output commensurate with the training
purpose. When you calibrate the output of the A/D converter, turn on the converter, set
analog input voltage, and adjust REF. ADJ. so that binary value on input voltage is
output. At this point, DC 0~15V output from this A/D converter can be used.
www.ed.co.kr
ED-4260 PLC Trainer
1) Introduction of DA-4260-6
Generally in an automatic system with PLC, depending on what it can control there
are a dynamic control type and non dynamic control type like a temperature control.
Both two controls are controlled with an electrical output, and their outputs are classified
as follows.
(1) ON/OFF output (switch control)
(2) Analog signal output
(3) Digital signal output
What we are trying to explain is you use the D/A converter to get analog signal from
the PLC since what the automatic control system controls is in need of electric analog
signal. To do this, it should be programmed to produce binary output from PLC, to
have analog output range in which is suitable for a control. Here we are explaining
DA-4260-6 module that allows the D/A conversion training and a way to do PLC appli-
cation training.
Since this converter module has the 8-bit binary switch in it that takes arbitrarily 8-bit
input, it takes binary manually and issues analog output accordingly. Also, the D/A con-
verter allows the V-REF of D/A converter to change analog output level rate to digital
conversion rate. The following is the electrical features of D/A converter, DA-4260-6.
Resolution 8 bits
Conversion time lower than 50s
Digital input level TTL level (H: approx. +5V)
Analog output 0~10V
Data switch 8 switches for digital input
Input power AC 220V
www.ed.co.kr
ED-4260 PLC Trainer
3) Usage of DA-4260-6
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 3-4] shows the connection between the D/A converter module and the PLC
unit output with the 25pin frame connector. In the figure, D/A converter has 8 bits
whereas the output of PLC unit is 16 point. Thus, first 8 point (0~7 bit) of PLC output
are connected
www.ed.co.kr
ED-4260 PLC Trainer
Input module is connected to the PLC input suitable for a training purpose. 8-bit digi-
tal input of D/A converter is connected to first 8 bits of the PLC unit(0~7).
www.ed.co.kr
ED-4260 PLC Trainer
1) Introduction of SU-4260-9
SU-4260-9 sensor training module detects temperature with the thermometer probe
along with the wheatstone bridge, have amplified output with the amplifier.
Also, the module emits heat, or cooling by internal fan that functions not only as
temperature source but also as the heater and cooling fan by connecting them externally
that allow temperature control training with the A/D converter and the PLC. [Figure
3-5] shows the control circuit of the heater and the cooling fan whose operation mode
is either a manual or automatic with the PLC. The following is electrical features of the
temperature sensor module.
Detection circuit Wheatstone bridge
Sensing range 1k~5k (bridge)
Temperature source Heater & cooler fan
Heater control Contact ON/OFF Type
Cooling control Contact ON/OFF Type
Sensor device Thermister probe
Input power AC 220V
www.ed.co.kr
ED-4260 PLC Trainer
2) Usage of SU-4260-9
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 3-7] depicts the connection of the temperature sensor module from which ana-
log output is issued to the PLC trainer, ED-4260, via the A/D converter. The 8-bit input
of A/D converter and 8-bit output of IM-4260-2 input module are connected to the input
unit, which is for preset comparative output. That is, since automatic control by temper-
ature controls temperature by detecting temperature, to be controlled at arbitrary temper-
ature, preset input is convenient.
www.ed.co.kr
ED-4260 PLC Trainer
Notice that [Figure 3-7] displays a way of training. For your own sake, assign num-
bers to the PLC I/O module. In the figure, the preset input is connected to 008 ~ 015
of the PLC unit 1 via the frame terminal, and 8-bit output of temperature detecting
module is connected to bit 100 through 107 of PLC unit 2 via the 25pin connector.
www.ed.co.kr
ED-4260 PLC Trainer
1) Introduction of PC-4260-10
The photo control module can control the brightness of the lamp. It allows automatic
brightness control circuit configuration with the arbitrarily value set since it has the de-
tecting sensor.
Since control input and output to the training module are analog signal, A/D converter
and D/A converter are needed to control signals as shown in [Figure 3-8].
(Brightness (Brightness
Control) Detection)
[Note] If there is a 4260-DA or a 4260-AD on the PLC unit (GLOFA-G4) that can
be installed on D/A converter and A/D converter, you may use them. You should be fa-
miliar with these converters before using them. The following is a list of electrical fea-
tures of the photo control SCR circuit.
www.ed.co.kr
ED-4260 PLC Trainer
2) Usage of PC-4260-10
(1) Explanation on panel
www.ed.co.kr
ED-4260 PLC Trainer
[Figure 3-10] shows the connection of the D/A converter and the A/D converter along
with the photo control SCR circuit module to PLC trainer ED-4260. The brighter the
surroundings, the less the output resister of the sensor is. The darker it is, the higher
the resister increases. Thus it is a simple resister change output. With the output, the
sensor output should be connected to the A/D converter to operate the A/D converter.
The input powers of the A/D converter and the D/A converter in [Figure 3-2] are
connected to the output of the AC 220V power supply in [Figure 3-4]. And notice that
AC input for the lamps comes in when AC power runs on 220V input terminal of the
module.
www.ed.co.kr
ED-4260 PLC Trainer
Connect 220V power from the power supply to an AC 220V input on the
module, and make sure that the lamp is surely inserted.
Connect switch input J12 and J13 with safe cord.
Turn on the power switch for ED-4260. As you turn knob for the output
voltage adjuster slowly, check that the brightness of the lamp is in accordance
with strength of its input voltage.
If something goes well, turn off the switch for the power supply, disconnect
the DC output connection cord, and turn the knob of the output voltage adjuster
all the down to the minimum counterclockwise.
[Figure 3-10] shows an example of training. Assign numbers to input and output mod-
ules of the PLC to use them.
Be aware of high voltage AC 220V when you do the training and careful not to
touch it. In times of changing or removing the connection, turn off the switch for the
power supply of ED-4260.
www.ed.co.kr
ED-4260 PLC Trainer
www.ed.co.kr
ED-4260 PLC Trainer
2) Usage of PT-4260-7
The rated output voltage from PT-4260-7 is 0.2A in AC 110V as said earlier.
Therefore, the output higher than 20W should not be used. The output current of DC
output 15V is 0.5A. Thus, load higher than 7.5W at +15V and 7.5W at 15V should be
avoided.
[Figure 3-12] shows an example of terminal convert circuit. This unit can be used not
only in ED-4260 but also other electronic and electric training systems for connection
terminal convertion.
www.ed.co.kr
ED-4260 PLC Trainer
www.ed.co.kr
ED-4260 PLC Trainer
The potentiometer and meter unit has as precise as 10-turn potentiometer, so that it
can divide voltage into arbitrary voltage. That is, analog signal input into an A/D con-
verter can be input precisely. Also 2 analog voltmeters allows monitoring analog input
voltage or analog output of D/A converter.
Especially, PM-4260-8 unit is an option unit prepared for the analog input unit (
4260-AD) of option unit of ED-4260 PLC unit or analog input of or output of analog
output unit (4260-DA). The following lists electrical features of PM-4260-8.
www.ed.co.kr
ED-4260 PLC Trainer
2) Usage of PM-4260-8
Meter-1
Potentiometer-1
Terminal
In/Output
Meter-1
Input Terminal
10-Turn Adjustor
Meter-2
Potentiometer-2
In/Output Terminal
Meter-2
Input Terminal
Adjustor
10-Turn
[Figure 3-14] shows an output after varying input on the potentiometer. The input
voltage should not exceed 100V. Moreover, the external voltage does not interfere the
output terminal.
Input
Output
www.ed.co.kr
www.ed.co.kr
1. Purpose of Experiment
2. Preparation
1) ED-4260 PLC TRAINER 1EA
2) PC(GMWIN installed) 1EA
3) RS-232 CABLE 1EA
4) Connection Cable 1SET
3. Related Knowledge
1) One should be able to understand the flow of electric signal.
2) One should be able to understand how a basic sequence circuit works.
4. Activating Condition
1) Program is set up in such a way that 16 points of INPUT and 16 points of
OUTPUT can be actuated on a one-on-one basis.
2) Activating circuit needs to be configured as below so that when power is applied
to INPUT address 000 by using the PLC TRAINER (ED-4260), input switch
module(IM-4260-2), and output lamp module (OM-4260-3), output LAMP at
OUTPUT address 300 turns on. (TRAINER criterion)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
3) INPUT 000 is connected to the number "0" switch of input module to form an
input circuit. (same configuration hereinafter)
4) OUTPUT 300 is connected to the number "0" lamp of output module to form an
output circuit. (same configuration hereinafter)
5) Power supply consists of DC 24V, and the following reference should be used for
proper configuration.
Reference: Power supply of input & output modules used for practice hereafter
is configured as follows:
PLC input module power supply: Connect PLC COM to DC 0V(-) and switch
COM to DC 24V(+) by using DC 24V fixed power supply. However, careful
consideration should be given to either NPN or PNP type depending on the sensor
type. In case that NPN type sensor is used, PLC COM should be connected to
DC 24V(+).
PLC output module power supply: Variable power supply DC 0~24V is used. The
reason why variable power supply is used for output is for one to practice a
separate use of input/output power supplies and arbitrarily adjust voltage depending
on the controller. Voltage should, however, be adjusted with current VR set to
maximum.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
6. Program Practice
1) Execute GMWIN PROGRAM.
2) Choose New Project from the Project menu.
3) Use an easily identifiable name for a project file in the dialog box of new project,
choose GM4 for PLC type(it depends on user's system), and fill out Writer and
Comment in a commentarial way(possible to omit).
www.ed.co.kr
PLC Practice using ED-4260 Trainer
4) Once making a project is done and Next button is clicked, a Define Program
window shows up as below. Type proper character as you want (considering
system operation) for the program file name(for example I/O control). Choose
Scan Program for Execution Condition (Markedselect condition for run) and
click Next.
* Scan program refers to generally created programs such as ladder, and mnemonic.
* Task program prioritizes interrupts, and more details are found in the self - teaching
guide.
* Program file name is the file name used when the program is stored after its
creation, and is selected by choosing Search when an existing program needs
editing or execution.
* Instance (Program) name belongs to the substructure of project (a project can
execute a number of programs) and the file extension is *.SRC where SRC is an
abbreviation for source.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
6) Programming
Once one clicks the desired location(on screen) where circuit will be built after
selecting the normally open contact point in order for OUTPUT 300 to be
activated as a result of pressing INPUT 000, the following result is displayed
on the screen.
normally open
contact point(N.O)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
In order for output lamp to turn on when input switch is pressed(ON) just like
Sequence circuit, it needs to be connected in series, and the following result is
displayed when one clicks the desired location where circuit will be built after
choosing Coil from the toolbox.
Though there are two different ways, namely, a way of using direct variable
and a way of using indirect variable in order to define variable for input switch
and output coil, let us pick indirect variable for here. If one double-clicks with
www.ed.co.kr
PLC Practice using ED-4260 Trainer
* Concerning output coil as well, when the variable name(OUTPUT 300) and the
www.ed.co.kr
PLC Practice using ED-4260 Trainer
address(%QX0.3.0) are filled out in the same way as done with input switch, the
following figure appears.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
7) Execution of Program(simulation)
To verify what was mentioned above, one uses a simulator, which is a character
istic of GLOFA to perform an experiment to check whether there is any abnormal
ity in the circuit and its activation.
Once Simulator Start is chosen after Project on the menu is chosen, an execution
file is generated, and clicking OK brings forth a simulator as below.
Base number and slot type in the above figure are automatically generated based
on the programmed variable of INPUT/OUTPUT.
The experiment of the above simulator shows that as input switch of slot number
0 is selected after CPU of the simulator is switched from STOP(S) mode to
RUN(R) mode, output is verified with a red lamp at slot number 3. (Refer to
the execution figure below.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
- Learn about auxiliary programs and how to call them using subroutine commands.
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
1) Execute GMWIN to open the Project window and the Program window.
2) Design a program using PLC I/O MAP.
3) Refer to the previous task concerning programming method.
4) A figure below shows a program that built circuit using subroutine commands.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Once one chooses Comment, a message box appears so that any content can be
inputted there. When a comment like "This is a program using sub program." is
inputted, the following result is displayed.
To write a subprogram, one chooses for the intended program and makes a
label. (Refer to the figure below.)
As far as writing a subprogram is concerned, it
works identically for both label and comment. (In
case of the above program, the name to be called
is "sub program.")
When programming is done, END is written in the
LD program by choosing "Main Program End
Mark" from the label/comment menu, and "This
line is the end of program body" is written as a
comment.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a situation where the simulator is chosen, and main output
lamp is activated by executing CPU with RUN mode and turning main switch on,
and auxiliary switch turns on as a result of jumping(subroutine) to auxiliary pro
gram by main output lamp, which enables auxiliary output to be turned on by
pressing the auxiliary switch.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
3) If one turns on stop push button switch during operation, motor stops, and stop
lamp turns on, and operation lamp turns off.
4) PLC I/O MAP is configured as below.
Indirect I/O
Section Remarks
Variable Name Allocation
START_SWITCH %IX0.0.1 Push Switch S-2
Input
STOP_SWITCH %IX0.0.0 Push Switch S-3
MOTOR %QX0.2.0 MOTOR-1(-)
Output OPERATION_LAMP %QX0.2.1 Lamp L-2
STOP_LAMP %QX0.2.2 Lamp L-1
5) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+).
6) PLC output power supply also consists of DC 24V, and PLC terminal block COM
is connected to DC 0V(-) while Motor (+) terminal and LAMP COM are
connected to DC 24V(+).
7) It is very important to configure PLC I/O MAP. It means enabling PLC I/O MAP
to estimate input/output point, and means control as well as input/output
configuration.
5. Program Practice
1) Execute GMWIN.
2) Open the Project window and the Program window.
3) Create a program using normally open contact point, normally closed contact point,
and output coil.
4) Refer to the previous task concerning programming method.
5) The following figure displays a program that shows examples of motor's start
and stop circuit using direct variable and indirect variable of stop circuit.
(One should understand the meaning of direct variable and indirect variable in LD
program.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
6) Storage of Program
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows that when the simulator is chosen to execute CPU with
the RUN mode, stop lamp that is the number 2(%QX0.2.2) output lamp of slot
"2" turns on.
If one presses the number 1(%IX0.0.1) button of start switch in slot "0",
motor(%QX0.2.0) is activated and operation lamp(%QX0.2.1) turns on. Then stop
lamp turns off.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
Toggle
FORWARD_SWITCH %IX0.0.1
Switch 1
Toggle
Input REVERSE_SWITCH %IX0.0.2
Switch 2
Toggle
STOP_SW %IX0.0.0
Switch 0
OPERATION_LAMP %QX0.3.0 Lamp L-2
FORWARD_MOTOR A %QX0.2.0 MOTOR-1 (+)
FORWARD_MOTOR B %QX0.3.2 MOTOR-1 (-)
Output
REVERSE_MOTOR A %QX0.2.1 MOTOR-1 (-)
REVERSE_MOTOR B %QX0.3.3 MOTOR-1 (+)
MOTOR_STOP_LAMP %QX0.3.1 Lamp L-1
2) When forward rotation switch turns on, motor does forward rotation operation.
When reverse rotation switch is turned on after turning stop switch ON/OFF, motor
does reverse rotation operation.
3) The system is configured in such a way that motor operation lamp turns on when
motor operates and motor stop lamp turns on when motor stops.
4) If forward rotation switch turns on, motor does forward rotation operation and
motor's operation lamp turns on. (Motor stop lamp turns off.)
5) One should turn motor off in order to do reverse rotation operation. Then motor
stop lamp should turn on(motor operation lamp turns off). If one turns reverse
rotation switch on after motor stops, then motor does reverse rotation operation,
and motor's operation lamp turns on(motor stop lamp turns off).
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
1) Execute GMWIN.
2) Open the Project window and the Program window.
3) Create a program using PLC I/O MAP.
4) Refer to the previous task concerning programming method.
5) The following figure displays a program that built motor's forward/reverse circuit.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows that when the simulator is chosen to execute CPU with
the RUN mode, stop lamp that is the number 1(%QX0.3.1) output lamp of slot
"3" turns on.
If one turns on forward rotation switch(%IX0.0.1), then forward rotation motors,
A(%QX0.2.0), B(%QX0.3.2) are activated, and operation lamp(%QX0.3.0) turns on.
Then stop lamp turns off.
To perform reverse rotation, stop motor with stop switch and turn on reverse
rotation switch(%IX0.0.2). Then motors, A(%QX0.2.1), B(%QX0.3.3) are
activated and operation lamp turns on. (Even if one turns on reverse rotation
www.ed.co.kr
PLC Practice using ED-4260 Trainer
switch during forward rotation, reverse rotation is not activated because they are
mutually protected by interlock circuit.)
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Build motor's start/stop circuit by using two(start, stop) switches.
2) PLC I/O MAP is configured as below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
Push
START_SWITCH %IX0.0.2
Switch S-2
Push
Input STOP_SWITCH %IX0.0.1
Switch S-3
Toggle
SWITCH_A %IX0.0.0
Switch 0
MOTOR %QX0.2.2 MOTOR-1 (-)
Output OPERATION_LAMP %QX0.2.1 Lamp L-1
STOP_LAMP %QX0.2.0 Lamp L-2
3) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+). Motor's power supply and
LAMP consist of DC 24V, and COM terminal is connected to DC 0V(-) while
motor(+) and LAMP COM are connected to DC 24V(+) variable power supply.
4) If start switch is turned on, motor's SET is activated and motor's operation lamp
turns on.
5) If stop switch is turned on, motor's RESET is activated, and operation stops, and
operation lamp turns off while stop lamp turns on.
6) Even if circuit is interrupted with switch A while being operated by start switch,
motor keeps working until motor's SET will be RESET.
7) SET command is characterized by the ability of sustaining its effect until RESET
command takes over.
5. Program Practice
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) A program that utilizes SET command and RESET command for motor's start and
stop is shown in the figure below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5) Various differences can be identified when the above program is compared with
motor's start/stop circuit of the practice task 3. Identify each difference.
6) Try to transmit using upload while transmitting to PLC. (Different traits from
MASTER-K)
7) Unless one selects upload program while transmitting to PLC, it is impossible for
program to be reversely transmitted from PLC. (Case of transmission from PLC to
PC Refer to clause 7.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a case that when the simulator is chosen to execute CPU
with the RUN mode and turn on start switch, operation lamp turns on while motor
SET is activated.
Motor stops only when motor RESET is activated by stop switch.
Motor maintains operation because RESET was not activated as the figure above
even if switch A is turned on when operated by start switch.
SET command is Cleared only by RESET command.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Positive/Negative Transition
Task 6
Sensing pulse Coil Program Practice
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
Push
START_SWITCH_1 %IX0.0.2
Switch S-2
Push
Input START_SWITCH_2 %IX0.0.1
Switch S-3
Toggle
STOP_SWITCH %IX0.0.0
Switch 0
MOTOR %QX0.2.2 MOTOR-1 (-)
Detect positive
POSITIVE Automatic
Edge
Output Detect negative
NEGATIVE Automatic
Edge
OPERATION_LAMP %QX0.2.1 Lamp L-1
STOP_LAMP %QX0.2.0 Lamp L-2
3) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+). Motor's power supply and
LAMP consist of DC 24V, and COM terminal is connected to DC 0V(-) while
motor(+) and LAMP COM are connected to DC 24V(+).
4) When start switch 1 turns on, positive transition sensing pulse coil is activated for
1 scan to operate motor(operation sustained by self-holding) as start switch 1
switches from OFF to ON(rising edge), and motor is stopped by stop switch.
5) When start switch 2 turns on, negative transition sensing pulse coil is activated for
1 scan to operate motor(operation sustained by self-holding) as start switch 2
switches from ON to OFF(falling edge), and motor is stopped by stop switch.
5. Program Practice
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) A program that built motor's start/stop circuit using positive/negative transition
sensing pulse coil command is shown in the figure below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5) Various differences can be identified when the above program is compared with
motor's start/stop circuit of the practice task 3. (Notice the difference between rising
output contact point and falling output contact point.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a case that when the simulator is chosen to execute CPU
with the RUN(R) mode and turn on start switch, stop lamp turns on. (Case of us-
ing reverse coil as stop lamp output tool)
As soon as start switch 1 turns on, positive transition sensing pulse is on, output
is sensed, and motor operates, and it is stopped by stop switch.
As soon as start switch 2 turns on and then turns off, negative transition sensing
pulse is on, and motor operates, and it is stopped by stop switch.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
- Learn about 3-phase induction motor's Y- start circuit using timer command.
2. Preparation
1) ED-4260 PLC TRAINER 1EA
2) PC(GMWIN installed) 1EA
3) RS-232 CABLE 1EA
4) Connection Cable 1SET
3. Related Knowledge
1) One should be able to understand basic knowledge of timer.
2) One should be able to understand 3-phase induction motor's start mechanism.
3) One should be able to understand function block.
4. Activation Condition
1) Build 3-phase induction motor's start/stop circuit by using operation switch and
stop switch. (Y- Operation)
2) PLC I/O MAP is configured as below.
Indirect I/O
Section Comment
Variable Name Allocation
Push
START_SWITCH %IX0.0.1
Switch S-2
Input
Push
STOP_SWITCH %IX0.0.0
Switch S-3
Y_OPERATION %QX0.2.1 Lamp 1
Output _OPERATION %QX0.2.2 Lamp 2
STOP_LAMP %QX0.2.0 Lamp 0
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
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) A program that built 3-phase induction motor's Y- start circuit using timer is
shown in the figure below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Choose Standard Function Block under Function Block Type Selection, and TON(ON
DELAY TIMER) under Standard Function Block, and then define a variable name
for timer. (Call it T1 using the abbreviation of TIMER. For COUNTER, it is general
to use C, its initial.)
The figure below shows that T1 is under activation as Y operation contact point
turns on, and activation status of the program whose set time(PT) is set to 5 seconds
is shown as well.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
- Pulse Timer(TP)
- From the moment when input signal of IN turns
ON, output turns ON, and even if input signal turns
OFF, output stays ON until certain time, and
output turns OFF when the set time is reached.
- IN, PT, Q, and ET have the same structure as ON Delay
Timer.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a case that when the simulator is chosen to execute CPU
with the RUN(R) mode and turn on start switch, Y operation output turns on.
Timer is activated by Y operation contacty point, and operation output is acti-
vated 5 seconds after the set time.
Operation is stopped by stop switch, and then stop lamp turns on.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activation Condition
1) Build a circuit in such a way that when start switch turns on, special register
_T1S repeats ON and OFF every one half second for one second, and when timer
turns on five times, counter enables motor to operate, and operation lamp turns
on. (Stop lamp turns off.)
2) Motor stops 5 seconds after timer is activated by counter output and operation
lamp turns off(stop lamp turns on). Motor should repetitively operate until
stop switch finally turns on.
3) When stop switch turns on, the present value of counter should be initialized.
4) PLC memory assignment is configured as below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect
Section Memory Allocation Comment
Variable Name
START_SWITCH %IX0.0.1 Push Switch S-2
Input
STOP_SWITCH %IX0.0.0 Push Switch S-3
MOTOR %QX0.3.3 MOTOR-1 (-)
START_LAMP %QX0.3.2 Lamp 2
OPERATION_LAMP %QX0.3.1 Lamp 1
Output
STOP_LAMP %QX0.3.0 Lamp 0
C1 Automatic
T1 Automatic
5) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+). Motor's and Lamp's
operating power consist of DC 24V, and COM terminal is connected to DC 0V(-)
while motor(+) and LAMP COM are connected to DC 24V(+).
5. Program Practice
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 local variable list and program that built the above circuit
using counter.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a case that when the simulator is chosen to execute CPU
with the RUN(R) mode, and turn on start switch, and activate start lamp, input sig-
nal is transmitted to counter every second by PLC's special register _T1S for
counting.
Once counter's counting reaches the preset value(PV=5), counter output Q is acti-
vated to operate motor that turns on operation lamp then.
Timer is activated by counter's output, and once the preset time(PT=5) is reached,
RESET is activated to initialize counter and stop motor. Then operation lamp turns
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Switch 1 controls output 1, and switch 2 controls output 2. But circuit should be
built in such a way that output 1 is not controlled by switch 1 when branch(jump)
command is used. On the other hand, output 2 should be always activated
regardless of branch(jump) command of switch 2.
2) PLC I/O MAP is configured as below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
SWITCH_1 %IX0.0.1 Toggle Switch 1
Input SWITCH_2 %IX0.0.0 Toggle Switch 0
BRANCH_SWITCH %IX0.0.2 Toggle Switch 2
OUTPUT_1 %QX0.2.1 Lamp L-1
Output
OUTPUT_2 %QX0.2.0 Lamp L-2
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(+).
5. Program Practice
1) Execute GMWIN and open the Project window and the Program window.
2) Creat 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 jump
command.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Branch(Jump) Command
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows a case that when the simulator is chosen to execute CPU
with the RUN(R) mode, and turn on switch 1 and switch 2 after executing branch
switch, output 2 turns on.
Once branch switch's contact point is activated, output 1 is not activated even if
switch 1's contact point is activated by branching to the jump destination, labeled,
jump. But output of output 1 is activated when there is no jump command, and if
jump command is executed while output 1 is in action, then output is maintained
even if switch 1's contact point turns off, and is controlled by switch 1 when jump
command is released. Output of output 2 is activated by switch 2 regardless of
jump command.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) If switch 1's contact point is activated, output 1 is activated, and program
terminates as it encounters [Return], output 2 outputted by switch 2's contact point
that is the program after [Return] is not activated.
2) PLC I/O MAP is configured as below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
Toggle
SWITCH_1 %IX0.0.1
Switch 1
Input
Toggle
SWITCH_2 %IX0.0.0
Switch 0
OUTPUT_1 %QX0.2.1 Lamp L-1
Output
OUTPUT_2 %QX0.2.0 Lamp L-2
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.
5. Program Practice
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 return
command.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The above figure shows the following. When the simulator is chosen to execute
CPU with the RUN(R) mode, and turn on switch 1, output 1 turns on. But the
program after row 2 is not executed because it is terminated by [Return] command
on row 2. Therefore even if switch 2 on row 3 is turned on, output 2 does not
turn on.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activation 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.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Memory
Section Variable Name Comment
Allocation
Toggle
SWITCH_1 %IX0.1.15
Switch 2
Toggle
Input SWITCH_2 %IX0.1.14
Switch 1
Toggle
SWITCH_3 %IX0.1.13
Switch 0
OUT
DATA1 %QW0.2.0
DISPLAY
Output DATA2 %QB0.3.0 Lamp 0~7
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.
5. Program Practice
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.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
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 prac-
tice, and remove 25pin cable when push/toggle switches are used for input.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
limit. But when the position is detected at the lower limit, motor moves to the
upper limit,
and when the position is detected at the upper limit, motor moves back to the
lower limit causing repetitive operation.
3) If stop switch turns on during operation, motor stops.
4) PLC I/O MAP is configured as below.
Indirect I/O
Section Comment
Variable Name Allocation
START %IX0.0.0 Push Switch S-2
STOP %IX0.0.1 Push Switch S-3
Input
LS01 %IX0.0.3 SENSOR-5
LS02 %IX0.0.2 SENSOR-4
OUT_20 %QX0.2.0 MOTOR-2 (+)
OUT_21 %QX0.2.1 MOTOR-2 (-)
Output
OUT_30 %QX0.3.0 MOTOR-2 (-)
OUT_31 %QX0.3.1 MOTOR-2 (+)
5) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+).
6) PLC output power supply consists of DC 24V, and COM terminal of the number
2 slot(%Q0.2.0~%Q0.2.7) is connected to DC24V(+) while COM terminal of the
number 3 slot(%Q0.3.0~%Q0.3.7) is connected to DC 0V(-).
7) %QX0.2.0 and %QX0.3.1 are connected to motor's (+)terminal, and %QX0.2.1 and
%QX0.3.0 are connected to motor's (-)terminal.
8) Configuring PLC I/O MAP is a very important work. It is so because PLC I/O
MAP estimates input/output point, and means control as well as input/output
configuration.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
1) Execute GMWIN.
2) Open the Project window and the Program window.
3) Write a program using normally open contact point, normally closed contact point,
and output coil.
4) Refer to the previous task concerning programming method.
5) The figure below shows program that contains an example of motor's upper/lower
limit linear movement circuit.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The figure above shows that when the simulator is chosen to execute CPU with the
RUN(R) mode, and turn on the number 0(%IX0.0.0) of START input slot "0", out-
put OUT20(%QX0.2.0) and OUT30(%QX0.3.0) are activated to start motor.
if one turns on START switch(%IX0.0.0), it is self-holded(latched) by M00, and
M01 is activated, and motor moves to the lower limit position because output
OUT20(%QX0.2.0) and OUT30(%QX0.3.0) are activated by M01. If LS01 is de-
tected at the lower limit position, M01 is turned off, and M02 is activated, and
motor moves to the upper limit position because output OUT21 (%QX0.2.1) and
OUT31(%QX0.3.1) are activated. If LS02 is detected at the upper limit position,
M02 is turned off, and M01 causes the appliance to move back to the lower limit
position and repetitively operate until one presses STOP switch.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Build a circuit in such a way that both START switch and STOP switch are used,
and stepping motor stops at a designated position using sensor.
2) Build a circuit in such a way that when START switch turns on, stepping motor
begins to rotate, and sensor stops it as its rotation reaches 360.
3) If STOP switch turns on during operation, stepping modor stops.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Assignment
Push Switch
START %IX0.0.0
S-2
Input Push Switch
STOP %IX0.0.1
S-3
SN_1 %IX0.0.2 SENSOR-3
OUT_0 %QX0.2.0 MOTOR-3 (B)
OUT_1 %QX0.2.1 MOTOR-3 (A)
Output
OUT_2 %QX0.2.2 MOTOR-3 (B1)
OUT_3 %QX0.2.3 MOTOR-3 (A1)
5) PLC input power supply consists of DC 24V, and PLC COM is connected to DC
0V(-) while switch COM is connected to DC 24V(+). Use variable power supply
DC 24V for output, and connect stepping motor's CT to (+), and PLC output
COM terminal to (-).
6) Configuring PLC I/O MAP is a very important work. It is so because PLC I/O
MAP estimates input/output point, and means control as well as input/output
configuration.
5. Program Practice
1) Execute GMWIN.
2) Open the Project window and the Program window.
3) Create a program using normally open contact point, normally closed contact
point, output coil, negative transition sensing pulse, timer, etc.
4) Refer to the previous task concerning programming method.
5) The figure below shows program that contains an example of motor's rotational
movement circuit.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
The figure above shows that when the simulator is chosen to execute CPU with
the RUN(R) mode, and turn on SN_1 as well as the number 0(%IX0.0.0) of
START switch input slot "0", timer is activated, which repetitively activates OUT0,
OUT1, OUT2, OUT3 in turn to let stepping motor rotate. Once SN_1 is activated,
M06 is activated, and self-holding circuit is released to stop stepping motor.
Stepping motor is stopped by STOP switch also.
To stop the simulator, just click shortcut in its right upper portion.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) In a quiz program, both a presider and participants show up. The presider casts a
quiz for participants. A priority is given to the person who presses switch first, by
which lamp turns on with a buzzer sound. Design a program suited to this
scenario. (The lamp for the person who pressed switch first stays on until the
presider releases it with a reset button, and buzzer sounds for a second only.)
2) Design a program with a configuration of PLC I/O MAP as below.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect I/O
Section Comment
Variable Name Allocation
PARTICIPANT1 %IX0.0.0 Push Switch 0
PARTICIPANT2 %IX0.0.1 Push Switch 1
Input
PARTICIPANT3 %IX0.0.2 Push Switch 2
PRESIDER %IX0.0.3 Push Switch 3
BUZZER %QX0.2.0 BUZZER (-)
PART_LAMP1 %QX0.2.1 LAMP 1
Output
PART_LAMP2 %QX0.2.2 LAMP 2
PART_LAMP3 %QX0.2.3 LAMP 3
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect Memory
Section Comment
Variable Name Allocation
Push Switch
START %IX0.0.0
S-2
Input
Push Switch
STOP %IX0.0.1
S-3
OUT
Output TIME %QW0.2.0
DISPLAY
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Build a circuit in such a way that if start switch turns ON, lamps of LAMP 0
through LAMP 15 turn on in order every second whereas they are initialized as
soon as stop switch turns ON.
2) Design a program with a configuration of PLC I/O MAP as below. (Use indirect
variable.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect Memory
Section Comment
Variable Name Allocation
Push Switch
START %IX0.0.0
S-2
Input
Push Switch
STOP %IX0.0.1
S-3
LAMP0 %QX0.2.0 Lamp 0
LAMP1 %QX0.2.1 Lamp 1
Output : : :
LAMP14 %QX0.2.14 Lamp 14
LAMP15 %QX0.2.15 Lamp 15
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Advenced Practice IV
Task 17
(Timer External Control Program Practice I)
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Build a circuit in such a way that one inputs timer's preset value(TP) using digital
switch, and when start switch turns ON, and then timer is activated, lamp turns
on as timer reaches the preset value.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect
Section Memory Allocation Comment
Variable Name
Toggle
START %IX0.0.0
Switch 0
Input
Digital
PT %IW0.1.0
Switch
LAMP %QX0.3.0 Lamp L-1
Output DISPLAY
DISPLAY %QW0.2.0
OUT
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Advenced Practice V
Task 18
(Timer External Control Program Practice II)
1. Purpose of Experiment
- Develop application scope of PLC using various commands.
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Build a circuit in such a way that if one inputs timer's preset value(TP) using
digital input switch, and timer is activated as a result of turning on push button
switch, timer's activation time value should be displayed using 7-segment. If timer's
activation is completed, then lamp turns on. It is initialized by stop switch.
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Indirect
Section Memory Allocation Comment
Variable Name
Push Switch
START %IX0.0.0
S-2
Input Push Switch
STOP %IX0.0.1
S-3
PT %IW0.1.0 DIGITAL SW
ET %QW0.2.0 OUT DISPLAY
Output
LAMP0 %QX0.3.0 Lamp L-1
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
2. Preparation
3. Related Knowledge
4. Activating Condition
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
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 or PLC self-teaching guide for any
programming help.
Indirect
Section Memory Allocation Comment
Variable Name
Push Switch
START %IX0.0.0
S-2
Input
Push Switch
STOP %IX0.0.1
S-3
Output DISPLAY %QW0.2.0 OUT DISPLAY
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr
PLC Practice using ED-4260 Trainer
1. Purpose of Experiment
- Develop application scope of PLC using various function block commands.
- Develop application scope using positive transition sensing coil contact point and
negative transition coil.
2. Preparation
3. Related Knowledge
4. Activating Condition
1) Write a program using TP timer, positive transition sensing coil contact point, and
negative transition sensing coil.
2) Design a circuit in such a way that if PB switch is pressed, then LAMP turns on,
and then LAMP turns off in three seconds.
www.ed.co.kr
PLC Practice using ED-4260 Trainer
5. Program Practice
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 or PLC self-teaching guide for any b
programming help.
6. With the best use of monitoring and simulation, make a trial run to
verify whether the program really works.
(If the program does not work, then keep modifying it till completion.)
www.ed.co.kr
PLC Practice using ED-4260 Trainer
Row 0
Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
Row 13
Row 14
Row 15
Row 16
Row 17
Row 18
www.ed.co.kr