Master-K: User User User User''''s Manual S Manual S Manual S Manual
Master-K: User User User User''''s Manual S Manual S Manual S Manual
User’s Manual
K200S
MASTER-K K300S
K1000S
LG Industrial Systems
Chapter 1 Introduction
1 Introduction .......................................................................................................1-1
1.1 Guide to the user’s manual .......................................................................................1-1
1.2 Features ....................................................................................................................1-2
1.3 Terminology ...............................................................................................................1-3
Chapter 1 Instruction MASTER-K
1 Introduction
1.1 Guide to the user’s manual
This user’s manual contains specifications, performance, and handling instructions for each of
unit of MASTER-K 200S/300S/1000S series PLC system.
The following table shows the configuration of this user’s manual.
Remark
In this manual, it is not described that the hardware information and programming of
special/communication modules. Please refer the user’s manual of each module for details.
Chapter 1 Instruction MASTER-K
1.2 Features
Chapter 1 Instruction MASTER-K
1.3 Terminology
The following table shows the definition of terms used in this manual.
Chapter 1 Instruction MASTER-K
Common
Current flows out from the input terminal of PLC to the input
switch when an input signal is turned on.
PLC
Switch Input
terminal
Source input –
Power Z
+ Current
Common
Common
Common
Chapter 2 System configuration
2 System configuration
The MASTER-K 200S/300S/1000S series has various modules suitable to configuration from
the basic to a large network system. This chapter describes the configuration and features of
each systems.
K3P-07AS
RUN
PAU/RE
M
KGL-WIN
Battery
POWER O
K3S-301S
K6F-AD2A K3FL-FUEA
K3X-210S K3Y-201S
Chapter 2 System configuration MASTER-K
Chapter 2 System configuration MASTER-K
2.2.1 K200S
Items Model No. Description Remark
Max. I/O points : 512 points
K3P-07AS
Special functions : RS-232C
CPU Max. I/O points : 512 points
K3P-07BS
modules Special functions : RS-422/485, RTC, PID control
Max. I/O points : 512 points
K3P-07CS
Special functions : RS-232C, RTC, HSC, PID control
K3X-110S 12/24VDC input, 8 points (source/sink)
K3X-210S 12/24VDC input, 16 points (source/sink)
K3X-240S 24VDC input, 16 points (source)
Digital
input K3X-310S 12/24VDC input, 32 points (source/sink)
modules
K3X-340S 24VDC input, 32 points (source)
K3X-120S 110VAC input, 8 points
K3X-130S 220VAC input, 8 points
K3Y-101S Relay output, 8 points, 2A/point 1points/com
K3Y-201S Relay output, 16 points, 2A/point
K3Y-203S Transistor output, 16 points, 0.5A/point (sink)
Digital
output K3Y-204S Transistor output, 16 points, 0.5A/point (source)
modules
K3Y-303S Transistor output, 32 points, 0.1A/point (sink)
K3Y-304S Transistor output, 32 points, 0.1A/point (source)
K3Y-102S Triac output, 16 points, 1A/point
K3B-4MS 4 module
Main
K3B-6MS 6 module
bases
K3B-8MS 8 module
K3S-302S 5VDC (2A), 24VDC (0.3A)
100 ~ 240VAC 5VDC (2A),
Power K3S-304S
+15VDC (0.5A), -15VDC (0.2A)
supply
modules K3S-102S 5VDC (2A), 24VDC (0.3A)
12 ~ 24VDC 5VDC (2A),
K3S-104S
+15VDC (0.5A), -15VDC (0.2A)
Chapter 2 System configuration MASTER-K
(continued)
Items Model No. Description Remark
A/D Voltage / Current input, 4channels
conversion K3F-AD2A 1 ~ 5VDC / 0 ~ 10VDC / -10 ~ 10VDC
modules DC 4 ~ 20mA
Voltage output, 4 channels
K3F-DV2A
Special modules
Fnet
modules Fnet remote I/F module
K3F-RBEA
1Mbps base band, Twisted pair cable
Chapter 2 System configuration MASTER-K
2.2.2 K300S
Items Model No. Description Remark
CPU
K4P-15AS Max. I/O points : 512 points
modules
K4X-210S 12/24VDC input, 16 points (source/sink)
K4X-240S 24VDC input, 16 points (source)
Digital K4X-310S 12/24VDC input, 32 points (source/sink)
input
modules K4X-340S 24VDC input, 32 points (source)
K4X-220S 110VAC input, 16 points
K4X-230S 220VAC input, 16 points
K4Y-201S Relay output, 16 points, 2A/point
K4Y-203S Transistor output, 16 points, 0.5A/point (sink)
K4Y-204S Transistor output, 16 points, 0.5A/point (source)
Digital
output K4Y-303S Transistor output, 32 points, 0.1A/point (sink)
modules
K4Y-304S Transistor output, 32 points, 0.1A/point (source)
K4Y-202S Triac output, 16 points, 1A/point
K4Y-205S Triac output, 16 points, 0.6A/point
K4B-4MS 4 module
Chapter 2 System configuration MASTER-K
(continued)
Items Model No. Description Remark
Voltage / Current input, 4channels
K4F-AD2A -5 ~ 5VDC / -10 ~ 10VDC
A/D DC -20 ~ 20mA
conversion
modules Voltage / Current input, 8channels
K4F-AD3A 1 ~ 5VDC / 0 ~ 10VDC
DC 4 ~ 20mA
Voltage / Current output, 2 channels
K4F-DA1A
-10 ~ 10VDC, DC4 ~ 20mA
Voltage output, 4 channels
K4F-DA2V
-10 ~ 10VDC
D/A Current output, 4 channels
conversion K4F-DA2I
modules DC 4 ~ 20mA
Voltage output, 8 channels
K4F-DA3V
-10 ~ 10VDC
Special modules
Interrupt
K4F-INTA 8 channels
module
Chapter 2 System configuration MASTER-K
(continued)
Items Model No. Description Remark
Fnet I/F module
K4F-FUEA
1Mbps base band, Twisted pair cable
Fnet I/F module Install to the IBM
G0L-FUEA
1Mbps base band, Twisted pair cable compatible PC
Fnet remote I/F module
K4F-RBEA
1Mbps base band, Twisted pair cable
Fnet Fnet single I/F module
G0L-SMIA
modules 12 / 24VDC input, 16 points
Network modules
Chapter 2 System configuration MASTER-K
2.2.3 K1000S
Items Model No. Description Remark
CPU
K7P-30AS Max. I/O points : 1,024 points
modules
K7X-210S 12/24VDC input, 16 points (source/sink)
K7X-310S 12/24VDC input, 32 points (source/sink)
K7X-410S 12/24VDC input, 64 points (source/sink)
Digital
input K7X-220S 110VAC input, 16 points
modules
K7X-230S 220VAC input, 16 points
K7X-320S 110VAC input, 32 points
K7X-330S 220VAC input, 32 points
K7Y-201S Relay output, 16 points, 2A/point
K7Y-301S Relay output, 32 points, 1A/point
K7Y-203S Transistor output, 16 points, 2A/point (sink)
K7Y-303S Transistor output, 32 points, 0.5A/point (sink)
Digital
output K7Y-304S Transistor output, 32 points, 0.5A/point (source)
modules
K7Y-403S Transistor output, 64 points, 0.1A/point (sink)
K7Y-404S Transistor output, 64 points, 0.1A/point (source)
K7Y-202S Triac output, 16 points, 2A/point
K7Y-302S Triac output, 32 points, 1A/point
K7B-4MS 4 module
Main base
K7B-6MS 6 module
boards
K7B-8MS 8 module
K7B-4ES 4 modules
Expansion
base K7B-6ES 6 modules
boards
K7B-8ES 8 modules
G3C-E061 Length : 0.6m
Expansion
G3C-E121 Length : 1.2m
cables
G3C-E301 Length : 3.0m
Memory
K7M-64S Flash memory, 64k steps
module
K7S-122S 110VAC
5VDC : 7A, 24VDC : 1.5A
K7S-132S 220VAC
Power
supply K7S-120S 110VAC
modules 5VDC : 13A, 24VDC : None
K7S-130S 220VAC
K7S-010S 24VDC 5VDC : 4A, 24VDC : bypass
(continued)
Items Model No. Description Remark
Voltage / Current input, 16 channels
K7F-AD4A -5 ~ 5VDC / -10 ~ 10VDC
DC -20 ~ 20mA
Interrupt
K7F-INTA 16 channels
module
Chapter 2 System configuration MASTER-K
(continued)
Items Model No. Description Remark
Fnet I/F module
K7F-FUEA
1Mbps base band, Twisted pair cable
Fnet I/F module
K7F-FUOA
1Mbps base band, Optical fiber cable
Fnet I/F module Install to the IBM
G0L-FUEA
1Mbps base band, Twisted pair cable compatible PC
Fnet remote I/F module
K7F-RBEA
1Mbps base band, Twisted pair cable
Fnet Fnet remote I/F module
K7F-RBOA
modules 1Mbps base band, Optical fiber cable
Fnet single I/F module
Network modules
G0L-SMIA
12 / 24VDC input, 16 points
Fnet single I/F module
G0L-SMQA
Relay output, 1A/point, 16 points
Fnet single I/F module
G0L-SMHA 12 / 24VDC input, 8 points
Relay output, 1A/point, 16 points
G0L-FREA Repeater for Fnet
Converter G0L-FOEA Optical ↔ Electrical converter
G0L-FAPA Power module for active coupler
Chapter 2 System configuration MASTER-K
Main base
Power
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Slot 6
Slot 7
CPU
Expansion
Expansion cable
base
Power
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Slot 6
Slot 7
Chapter 2 System configuration MASTER-K
Remark
The maximum number of Cnet modules that can be mounted simultaneously is as following;
Cnet modules can be mounted only main base board. (Not available for expansion base board)
Remark
1. Fnet network module can mounted on main base board only. It can not be mounted on a
expansion base board
2. The remote system has same configuration with a basic system configuration. However, the
following modules can not be used on the remote system which a Fnet remote I/F module is
mounted.
K3S-122S
Main base
Chapter 3 General specifications
3 General specifications
The following table shows the general specifications of MASTER-K series.
No Item Specifications Remark
Operating ambient
1 0 ~ 55 (32 ~ 131 °F)
temperature
Storage ambient
2 -25 ~ 70 (-13 ~ 158 °F)
temperature
Operating ambient
3 5 ~ 95%RH, non-condensing
humidity
Storage ambient
4 5 ~ 95%RH, non-condensing
humidity
Occasional vibration
Frequency Acceleration Amplitude Sweep count
10f<57 Hz - 0.075 mm 10 times in each
57 f150 Hz 9.8 (1G) - direction for X, Y, Z
Vibration
5 IEC 1131-2
resistance Continuos vibration
Frequency Acceleration Amplitude
10f<57 Hz - 0.035 mm 10 times in each
57f150 Hz 4.9 (0.5G) - direction for X, Y, Z
Remark
1. IEC (International Electrotechnical Commission) : The international civilian organization which
produces standards for electrical and electronics industry.
2. Pollution degree : It indicates a standard of operation ambient pollution level. The pollution
degree 2 means the condition in which normally, only non-conductive pollution occurs.
Occasionally, however, a temporary conductivity caused by condensation shall be expected.
3-1
Chapter 4 CPU modules
4 CPU modules
4.1 Performance specifications
The performance specification of K200S / 300S / 1000S series is shown as following table;
Specifications
Item Remarks
K200S K300S K1000S
Cycle execution of stored program, Time-driven
Program control method
interrupt, Process-driven interrupt
Indirect mode (Refresh method), Direct by program
I/O control method
command
Program language Mnemonic, Ladder diagram
Numbers of instructions Basic : 30, Application : 218
Processing speed 0.5µsec/step 0.2µsec/step 0.2µsec/step
Program capacity 7k steps 15k steps 30k steps
Max. I/O points 512 points 1,024 points
P000 ~ P63F
P P000 ~ P31F (512 points) I/O relay
(1,024 points)
M M000 ~ M191F (3,072points) Auxiliary relay
K K000 ~ K31F (512 points) Keep relay
L L000 ~ L63F (1,024 points) Link relay
4-1
Chapter 4 CPU modules MASTER-K
Step Description
Start of operation
Program execution
0 step
Execute the user program from step 0 to the last
step
Last step
4-2
Chapter 4 CPU modules MASTER-K
2) Interrupt operation
When the CPU detects an interrupt signal, it stops the current operation and execute the
corresponding interrupt routine. After the interrupt routine is completed, the CPU resumes
to execute the previous operation from the stopped point.
The MASTER-K 200S/300S/1000S has two interrupt types that are time-driven interrupt
(TDI) and process-driven interrupt (PDI). Please refer the chapter 4.3.3 for details.
Over 20msec
Remark
Momentary power failure:
The power failure of PLC system means the state that AC input voltage is dropped below the
minimum value of rated input voltage range. When the period of power failure is short (usually,
the 1/2 cycle), it is called as momentary power failure.
4-3
Chapter 4 CPU modules MASTER-K
4-4
Chapter 4 CPU modules MASTER-K
4.2.5 Timers
The MASTER-K 200S/300S/1000S series uses upcount timers. There are 5 timer
instructions such as on-delay (TON), off-delay (TOFF), integral (TMR), monostable
(TMON), and re-triggerable (TRTG) timer.
The measuring time range of 100msec timer is 0.1 ~ 6553.5 sec, and that of 10msec
timer is 0.01 ~ 655.35 sec. Please refer the ‘MASTER-K programming manual’ for details.
1) On delay timer
The current value of timer starts to increase from 0 when the input condition of TON
instruction turns on. When the current value reaches the preset value, the timer output
relay turns on.
When the timer input condition is turned off, the current value becomes 0 and the timer
output relay is turned off.
Current value
PT PT
Current value
4-5
Chapter 4 CPU modules MASTER-K
3) Integral timer
In general, its operation is same as on-delay timer. Only the difference is the current
value will not be clear when the input condition of TMR instruction is turned off. It keeps
the elapsed value and restart to increase when the input condition is turned on again.
When the current value reaches preset value, the timer output relay is turned on.
The current value can be cleared by the RST instruction only.
t1 t2 t3
Preset value (PV)
PT=t1+t2+t3
Current value
4) Monostable timer
In general, its operation is same as off-delay timer. However, the change of input
condition is ignored while the timer is operating (decreasing).
(ignored)
Current value (On operation)
4-6
Chapter 4 CPU modules MASTER-K
5) Retriggerable timer
The operation of retriggerable timer is same as that of monostable timer. Only difference
is that the retriggerable timer is not ignore the input condition of TRTG instruction while
the timer is operating (decreasing). The current value of retriggerable timer will be set as
preset value whenever the input condition of TRTG instruction is turned on.
Remark
The accuracy of timer:
The Maximum timing error of timers of MASTER-K series is + 2 scan time ~ - 1 scan time. Refer
the programming manual for details.
4-7
Chapter 4 CPU modules MASTER-K
4.2.6 Counter
The counter counts the rising edges of pulses driving its input signal and counts once
only when the input signal is switched from off to on. MASTER-K series have 4 counter
instructions such as CTU, CTD, CTUD, and CTR. The maximum counter setting value is
hFFFF ( = 65535). The followings shows brief information for counter operation.
1) Up counter (CTU)
The counter output relay is turned on when the current value reaches the preset value.
After the counter relay output is turned on, the current value will increase until it reaches
the maximum counting value (hFFFF = 65535).
When the reset input is turned on, the counter output relay and current value is cleared
as 0.
U CTU Cxxx
R <S> xxxx
U CTD Cxxx
R <S> xxxx
1
If the retentive counter area is used for down counter, the reset input has to be turned on to
initialize counter.
4-8
Chapter 4 CPU modules MASTER-K
3) Up-down counter
The current value is increased with the rising edge of up-count input signal, and
decreased with the rising edge of down-count input signal. The counter output relay is
turned on when the current value is equal or greater than the preset value.
U CTD Cxxx
R <S> xxxx
4) Ring counter
The current value is increased with the rising edge of the counter input signal, and the
counter output relay is turned on when the current value reaches the preset value. Then
the current value and counter output relay is cleared as 0 when the next counter input
signal is applied.
U CTR Cxxx
R <S> xxxx
Remark
1. Maximum counting speed
The maximum counting speed of counter is determined by the length of scan time. Counting
is possible only when the on/off switching time of the counter input signal is longer than scan
time.
Maximum counting speed (C max ) = × times/sec) n : duty (%), ts : scan time
2. Duty
Duty is the ratio of the input signal’s on time to off time as a percentage.
T1
If T1 ≤ T2, n= × ) T1 T2
T1 + T2
ON
T2
If T1 > T2, n= × )
T1 + T2 OFF
4-9
Chapter 4 CPU modules MASTER-K
Start operation
Subroutine program
PDI program
Scan program
TDI program
END processing
4-10
Chapter 4 CPU modules MASTER-K
Before to use interrupt function in sequence program, the parameter setting should be
done properly. Then the corresponding interrupt routine should be written after END
instruction. (Refer chapter 4 for details) If interrupt routines are not matched with
parameter settings, an error occurs and the operation of CPU will be stopped.
When multiple interrupt factors occur simultaneously, interrupt routines are executed
according to the priority given to the each interrupt. If an interrupt factor that has higher
priority occurs while other interrupt that has lower priority are executing, the interrupt
routine of lower priority will be stopped and the interrupt of higher priority will be executed
first. The following figure shows how a CPU handles multiple interrupts.
1 Program starts
1
Scan Program
2 2 Interrupt 2 occurs
4-11
Chapter 4 CPU modules MASTER-K
1) Parameter setting
Remark
Period is the interval of time driven interrupt occurring. It is variable from 10 msec to 60,000
msec (60sec) by 10 msec.
Remark
Interrupt processing during momentary power failure:
If process-driven interrupts occur during a momentary power failure (power failure less than 20
msec), they are executed after the power is recovered. If a time-driven interrupt occurs two or
more times during momentary power failure, it is executes only once after power is recovered.
During momentary power failure, the CPU keep measuring time and the period of momentary
power failure is included in the period of TDI.
4-12
Chapter 4 CPU modules MASTER-K
400msec
200msec 200msec
A B C B A B B A B C
4-13
Chapter 4 CPU modules MASTER-K
1
Scan Program
2
PDI
9
PDI
5
Interrupt routine 0 6
PDI
Interrupt routine 1 7
2 4 6
3
Interrupt routine 2 4
8
1 Program starts
2 Interrupt 2 occurs
4-14
Chapter 4 CPU modules MASTER-K
1) Error classification
Error occurs due to various causes such as PLC system errors, system configuration fault
or abnormal operation result. Errors are classified into fatal error that stops system
operation for safety, and ordinary error that continue system operation with informing the
user of error warning.
Remark
1. When an error occurs, the error code is stored at special relay (F006 word).
2. Refer the appendix 2 ‘Flag list’ for details of error flags.
4-15
Chapter 4 CPU modules MASTER-K
Self-diagnosis
I/O refresh
No
Mode changed?
Yes
4-16
Chapter 4 CPU modules MASTER-K
Self-diagnosis
I/O refresh
No
Mode changed?
Yes
4-17
Chapter 4 CPU modules MASTER-K
Self-diagnosis
I/O refresh
No
Mode changed?
Yes
4-18
Chapter 4 CPU modules MASTER-K
Stop operation
Self-diagnosis
I/O refresh
No
Mode changed?
Yes
4-19
Chapter 4 CPU modules MASTER-K
Remark
Remark
Remark
The CPU operates continuously when the operation mode is changed as remote RUN ! local
RUN
4-20
Chapter 4 CPU modules MASTER-K
Mode key
Mode change KGL-WIN FAM / Cnet
switch
Remote STOP ! Remote RUN O O
Remote STOP ! Remote PAUSE X X
Remote STOP ! DEBUG O O
Remote RUN ! Remote PAUSE O O
Remote RUN ! Remote STOP O O
Remote RUN ! DEBUG X X
PAU / REM
Remote PAUSE ! Remote RUN O O
Remote PAUSE ! Remote STOP O O
Remote PAUSE ! DEBUG X X
DEBUG ! Remote RUN X X
DEBUG ! Remote PAUSE X X
DEBUG ! Remote STOP O O
4-21
Chapter 4 CPU modules MASTER-K
1) Clock data
Clock data is the data comprised of year, month, day, hour, minute, second, and date.
Data name Description
Year The lower 2 digits of the Christian Era
Month 1 to 12
Day 1 to 31 (A leap year is distinguished automatically)
Hour 0 to 23 (24 hours)
Minute 0 to 59
Second 0 to 59
0 Sunday
1 Monday
2 Tuesday
Date 3 Wednesday
4 Thursday
5 Friday
6 Saturday
2) Precision
Max. 1.728 second per day (general temperature)
Remark
1. The RTC data does not have factory default setting. Please write a correct RTC data
before using RTC function first time.
2. If unreasonable RTC data is written to the CPU, the RTC function may operate
abnormally.
Example : 13 (month) 32 (day)
4-22
Chapter 4 CPU modules MASTER-K
4-23
Chapter 4 CPU modules MASTER-K
Other Program
4-24
Chapter 4 CPU modules MASTER-K
<D4810 word>
F E D C B A 9 8 7 6 5 4 3 2 1 0
1 0 0 0 0 1 1 1 0 0 1 0 0 0 0 1
b) Write the forced I/O address (All bit = hFFFF) to the corresponding address word.
Write hFFFF to the D4710.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
F E D C B A 9 8 7 6 5 4 3 2 1 0
P P P P P P P P P P P P P P P P
F E D C B A 9 8 7 6 5 4 3 2 1 0
1 0 0 0 0 1 1 1 0 0 1 0 0 0 0 1
4-25
Chapter 4 CPU modules MASTER-K
<D9807 word>
F E D C B A 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
b) Write the forced I/O address (last bit = h0001) to the corresponding address word.
Write h0001 to the D9707.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
F E D C B A 9 8 7 6 5 4 3 2 1 0
P P P P P P P P P P P P P P P P
F E D C B A 9 8 7 6 5 4 3 2 1 0
P P P P P P P P P P P P P P P 1
Remark
The program edit in RUN mode can not be performed for the following instructions – JMP,
JME, CALL, SBRT, FOR, and NEXT instructions. Moreover, the program that has very long
scan time (2 seconds or more) can not be edited while the CPU is in the RUN mode.
4-26
Chapter 4 CPU modules MASTER-K
4.5.4 Self-diagnosis
Slot No : 1 2 3 4 5 6 7
MSB LSB
F004
1 1 1
(word)
Error occurred at slot 0
Error occurred at slot 1
Error occurred at slot 15
MSB LSB
F005
1 1 1
(word)
Error occurred at slot 31
4-27
Chapter 4 CPU modules MASTER-K
4-28
Chapter 4 CPU modules MASTER-K
0 ~ F 0000 ~ FFFF
P00 D0000
I/O relay Data Register Parameter setting area
(See the remark) “P” “D” Word
P ✼✼1 D4500
M000 Auxiliary relay D4999 Reserved for special usage
User Program
(3,040 points) “M” Area
M189
M190 T000
Special auxiliary relay Timer preset value
T000 S00
Timer relay (100ms) Step Controller
64 points “T”
T255 Remark
C000
Counter relay
P✼✼1 : K200S : P15 (256 points)
256 points “C”
C255 K300S : P31 (512 points)
4-29
Chapter 4 CPU modules MASTER-K
0 ~ F 0000 ~ FFFF
P00 D0000
I/O relay Data Register Parameter setting area
(1,024 points) “P” “D” Word
P63 D9500
M000 Auxiliary relay D9999 Reserved for special usage
User Program
(3,040 points) “M” Area
M189
M190 T000 (30k steps)
Special auxiliary relay Timer preset value
T000 S00
Timer relay (100ms) Step Controller
64 points “T”
T255
C000
Counter relay
4-30
Chapter 4 CPU modules MASTER-K
CPU module
Fnet module
P120 ~ P12F (1word)
P110 ~ P11F (1 word)
P100 ~ P10F (1 word)
P080 ~ P09F (2 words)
P070 ~ P07F (1 word)
P030 ~ P06F (4 words)
P010 ~ P02F (2 words)
P000 ~ P00F (1 word)
Remark
1. Special function modules occupy various I/O addresses according to the type of module.
Please see the user’s manual of each special function module for details
2. Special function modules can be mounted on any slots of main / expansion base. There is
also no limit on the number of special function modules mountable on a base.
3. Network module can be mounted on the main base only.
4-31
Chapter 4 CPU modules MASTER-K
1
2
3 1
2
4 4 1
5 2
7
6
8
4
8
7 9
A
6 6
8
No Name Description
Shows the operation status of CPU module
On : the CPU is on the Local RUN or remote RUN mode
1 RUN LED Off : the CPU detects improper power supply
the CPU is not on the RUN mode (STOP or PAUSE mode)
the CPU detects an fatal error that stop the operation
Shows the operation status of CPU module
On : the CPU is on STOP mode
2 STOP LED
Off : the CPU is not on the STOP mode (RUN or PAUSE)
Flickering : An error is detected during operation
Only K1000S has remote LED.
3 Remote LED On : the CPU is on the remote (RUN / STOP / PAUSE / DEBUG) mode
Off : the CPU is on the local (RUN / STOP / PAUSE) mode
4-32
Chapter 4 CPU modules MASTER-K
No Name Description
Set a operation mode of CPU module
RUN : Executes user program
4 Mode key switch
STOP : Stop executing user program
PAU / REM : Pause or remote mode
Manual reset
5 Restart the CPU module ( Available in K1000S only)
switch
K3P-07BS K3P-07CS
Terminal block RDA φA 24V
A for special
functions RDB φB 24V
SDA COM
SDB PRE 24V
SG PRE 0V
4-33
Chapter 5 Battery
5 Battery
5.1 Specifications
Item Description
Rated voltage 3.0VDC
Lifetime 5 years
Purpose User program and data back-up, RTC operation during power-off
Type Lithium battery, 3VDC
Dimension (mm) φ 14.5 × 26
Remark
The K300S and K1000S CPU modules have super capacitor to back-up during battery
replacement. The super capacitor can backup the user program and latch area about 30
minutes. However, be careful to finish battery replacement as soon as possible.
Caution
The K200S CPU module does not have super capacitor or other device to backup during
battery replacement. Therefore, the user program and latch area will be erased if the battery
is removed while the power is off. Make sure to turn on the power of CPU during battery
replacement.
5-1
Chapter 5 Battery MASTER-K
Replacement battery
Yes
The battery is defected. Done
5-2
Chapter 6 Memory module
6 Memory module
In this chapter, it is described how to store user program in the memory module and run a
PLC system with memory module.
The memory module of MASTER-K 200S/300S/1000S series uses flash memory. To read /
write of memory module, insert a memory module into the memory module socket on the
CPU module. No other device such as ROM writer is required.
The K200S includes a flash memory on the CPU module, so it does not have external
memory module.
6.1 Structure
Housing
(Flash memory is included)
Connector
6.2 Specifications
6-1
Chapter 6 Memory module MASTER-K
6.2.2 K200S
The K200S series includes a flash memory, and the operation mode (RAM mode / Flash
memory mode) can be selected by setting DIP switch on the front of CPU module.
1: Off, 2: Off
ROM MODE 2
When the CPU starts with RUN mode, the CPU module
operates with the program stored in RAM. (the contents
ON
TEST MODE 1
of flash memory is ignored.)
Remark
6-2
Chapter 6 Memory module MASTER-K
1) Switch the CPU to STOP mode and then turn off power.
2) Insert memory module into the memory module connector of CPU module
3) Turn on the power and then switch the CPU module to RUN mode.
4) Check the CPU is operating in flash memory mode by monitoring special relays.
F0007 : Turns on when memory module is mounted
F0005 : Turns on when the CPU operates in flash memory mode.
Remark
1. If the CPU starts RUN mode when memory module is mounted, the program and
parameter of internal RAM of CPU module will be replaced with those of memory module
immediately. (There is no warning message) Therefore, when write program into memory
module, make sure the CPU is in STOP mode.
2. When revise program with KGL-WIN or KLD-150S, remove memory module from the
memory module connector of CPU module. If the CPU is changed to RUN mode with
memory module mounted, the program and parameter of CPU module is replaced as
memory module and all changes of program will be lost.
6-3
Chapter 7 I/O modules
7 I/O modules
When selects I/O module for K200S/300S/1000S PLC system, please refer the following
instructions.
1) The digital input module is classified as current sink input and current source input. The
external wiring with input device is various according to the type of digital input module.
Please select suitable digital input module type with considering of specification of input
device.
2) The maximum points that can be turn simultaneously on differ with each module. Before
to select a digital I/O module, check the specification of module.
3) When a very fast response time (less than a scan time) is required, select an interrupt
module. However, only one interrupt module can be mounted on a system.
4) The lifetime of relay is described as total on/off times (No load : 10 million times, With
load : 0.1 ~ 3 million times). Therefore, if the frequency of on/off operation of relay is
higher, the lifetime of relay is shorter. Please use transistor or SSR output module for high
frequency operation.
5) When a large and/or inductive load is connected directly to the output module, it may
cause malfunction of the output module. It is highly recommended customers to connect
an external relay or SSR between an output module and large inductive load for improved
reliability and maintenance of PLC system.
7-1
Chapter 7 I/O modules MASTER-K
Type K200S
Specification K3X-110S
Input points 8 points
Insulation method Photo coupler insulation
Rated input voltage 12VDC 24VDC
Rated input current 3 mA 7 mA
Operating input voltage 10.2 ~ 26.4 VDC ( ripple : 5% or less )
Max. simultaneously on 8 points (100%)
On voltage / current 9.5 VDC / 3.5 mA
Off voltage / current 5 VDC / 1.5 mA
Input impedance About 3.3kΩ
0
1
2
3
4
5
6
7
COM
7-2
Chapter 7 I/O modules MASTER-K
0
0 0
1
1 1
1 1
2 2
2 2 3
3 3
4 4
4
5 7
5 5
6 8
6 6
7 COM
7 7
COM
8 9
9 8
8 8
10 10
9 9
11 9
A A 11
B B
12
13
C C
D D
14
15 F
E E 17
16
F F 17
COM COM
18 18
N.C 19
N.C 20 N.C 19
N.C 20
7-3
Chapter 7 I/O modules MASTER-K
[ K3X-240S ] [ K4X-240S ]
0 0
1 1
1
2 2
2
3
3 3
4 4
4
5 5
5
6 6
6
7
7 7
COM
8
9
8 8
9 9
10
11
A A
B B
12
13
C C
D D
14
15
E E
16
F F 17
COM
18
N.C 19
N.C 20
7-4
Chapter 7 I/O modules MASTER-K
00
00 1 01
1
01 20 02
2
02 2 3
03 03
04
21
04
4
05
3 5
22 05
06 4 06
6
07 23
7
07
08 5 COM1
8
09 24 9
0A 6
0B 25
18
19
28
19 32 29
1A 1A
1B
14
1B
30
1C
33 31
15 1C
1D 34 1D
32
1E 16
33
1E
1F 35 34
17 1F 35
COM4
36 36
18 N.C 37
37
19
N.C 38
7-5
Chapter 7 I/O modules MASTER-K
00 1
01 20
02 2
03 21
04 3
05 22
06 4
07 23
08 5
09 24
0A 6
0B 25
19 32
1A 14
1B 33
1C 15
1D 34
1E 16
1F 35
17
36
18
37
19
7-6
Chapter 7 I/O modules MASTER-K
Type K1000S
Specification K7X-410S
Input points 64 points
Insulation method Photo coupler insulation
Rated input voltage 12 / 24 VDC
Rated input current 3 / 7 mA
Operating input voltage 10.24 ~ 26.4 VDC ( ripple: 5% or less )
Max. simultaneously on 19 points / 1COM (60%)
On voltage / current 9.5 VDC /3.0 mA
Off voltage / current 6 VDC / 1.5 mA
Input impedance About 3.3kΩ
Connector 1 Connector 2
00 1 21
10 20 1 21
30
01 2 22 11 21 2 22 31
02 3 23
12 22 3 23
32
03 4 24 13 23 4 24 33
04 5 25
14 24 5 25
34
05 6 26
15 25 6 26
35
0E 15 35
1E 2E 15 35
3E
0F 16 36 1F 2F 16 36 3F
17 37 17 37
18 38 18 38
19 39 19 39
20 40 20 40
7-7
Chapter 7 I/O modules MASTER-K
Type K200S
Specification K3X-120S
Input points 8 points
Insulation method Photo coupler insulation
Rated input voltage 110VAC ( 50 / 60 Hz )
Rated input current 7 mA ( 110VAC, 60 Hz )
Operating input voltage 85 ~ 132 VAC ( 47 ~ 63 Hz )
Max. simultaneously on 8 points (100%)
Inrush current Max. 300 mA ( 0.3msec, 132 VAC )
On voltage / current 80 VAC / 5 mA
Off voltage / current 30 VAC / 2 mA
Input impedance About 15 kΩ
COM
110VAC
7-8
Chapter 7 I/O modules MASTER-K
[ K4X-220S ] [ K7X-220S ]
0
1
0
1
1 1
2 2
2 3
3 110VAC
4
4
110VAC 5 7
5
6 8
6
7 COM
7
8 9
COM
9 8
8
10 10
9
11 9
A
12 11
B
13 110VAC
110VAC C
14
D 15 F
E
16 17
F 17 COM
COM
18 18
N.C 19
N.C 20 N.C 19
N.C 20
7-9
Chapter 7 I/O modules MASTER-K
Type K1000S
Specification K7X-320S
Input points 32 points
Insulation method Photo coupler insulation
Rated input voltage 110 VAC ( 50 / 60 Hz )
Rated input current 11 mA ( 110 VAC, 60 Hz )
Operating input voltage 85 ~ 132 VAC ( 47 ~ 63 Hz )
Max. simultaneously on 5 points / 1COM ( 60% )
Inrush current Max. 300 mA ( 0.3msec, 132 VAC )
On voltage / current 80 VAC / 6 mA
Off voltage / current 30 VAC / 3 mA
Input impedance About 10 kΩ
00
01
1
02
2
3
03
110VAC 04
4
05
5
06
6
7
07
COM1
8
9
18
19
28
29
1A
1B
30
31
110VAC 1C
1D
32
33
1E
34
1F 35
COM4
36
N.C 37
N.C 38
7-10
Chapter 7 I/O modules MASTER-K
Type K200S
Specification K3X-130S
Input points 8 points
Insulation method Photo coupler insulation
Rated input voltage 220VAC ( 50 / 60 Hz )
Rated input current 11 mA ( 220VAC, 60 Hz )
Operating input voltage 170 ~ 264 VAC ( 47 ~ 63 Hz )
Max. simultaneously on 8 points (100%)
Inrush current Max. 600 mA ( 0.12msec, 264 VAC )
On voltage / current 80 VAC / 5 mA
Off voltage / current 30 VAC / 2 mA
Input impedance About 20 kΩ
COM
220VAC
7-11
Chapter 7 I/O modules MASTER-K
[ K4X-230S ] [ K7X-230S ]
0
1
0
1
1 1
2 2
2 3
3 220VAC
4
4
220VAC 5 7
5
6 8
6
7 COM
7
8 9
COM
9 8
8
10 10
9
11 9
A
12 11
B
13 220VAC
220VAC C
14
D 15 F
E
16 17
F 17 COM
COM
18 18
N.C 19
N.C 20 N.C 19
N.C 20
7-12
Chapter 7 I/O modules MASTER-K
Type K1000S
Specification K7X-330S
Input points 32 points
Insulation method Photo coupler insulation
Rated input voltage 220 VAC ( 50 / 60 Hz )
Rated input current 10 mA ( 220 VAC, 60 Hz )
Operating input voltage 170 ~ 264 VAC ( 47 ~ 63 Hz )
Max. simultaneously on 5 points / 1COM ( 60% )
Inrush current Max. 600 mA ( 0.12msec, 264 VAC )
On voltage / current 150 VAC / 6 mA
Off voltage / current 30 VAC / 3 mA
Input impedance About 10 kΩ
00
01
1
02
2
3
03
220VAC 04
4
05
5
06
6
7
07
COM1
8
9
18
19
28
29
1A
1B
30
31
220VAC 1C
1D
32
33
1E
34
1F 35
COM4
36
N.C 37
N.C 38
7-13
Chapter 7 I/O modules MASTER-K
[ K4F-INTA ] [ K7F-INTA ]
00
00
1 1
2 01
2
01
3 3
4 02
4
02
5 5
6 03
6
03
7 7
8 8
04
9 9
05 10
11
06 12
13 14
28
14 29
07
15 15
30
16 31
N.C 17 32
N.C 18 N.C 33
N.C 19 N.C 34
N.C 20 N.C 35
N.C 36
N.C 37
N.C 38
7-14
Chapter 7 I/O modules MASTER-K
00
L
01
02
03
04
05
06
07
L
N.C
N.C
7-15
Chapter 7 I/O modules MASTER-K
0
L 1
00 00
L L 1 1
01 01 2 L 2
02 02 3
03 03 4
04 04 5 7 L
05 05 6 8
06 06 7 COM1
07 07 8 9
08 9 8
08 L L 10
L 10
09 09 11 9
0A 0A
12 L 11
0B 0B 13
0C
0C 14
0D 0D 15 F L
0E 0E 16 17
0F 0F 17 COM2
18 18
N.C 19
N.C 20 N.C 19
N.C 20
7-16
Chapter 7 I/O modules MASTER-K
00
L 1
01 2
02 3
03 4
04 5
05 6
06 7
07 8
9
18
L 28
19 29
1A 30
1B 31
1C 32
1D 33
1E 34
1F 35
36
N.C 37
N.C 38
7-17
Chapter 7 I/O modules MASTER-K
Type K200S
Item K3Y-102S
Output points 8 points
Insulation method Photo coupler
Rated load voltage 100 ~ 240 VAC ( 50 / 60 Hz )
Maximum load voltage 264 VAC
Maximum load Per 1point 1A
current Per 1 COM 4A
Minimum load current 20 mA
Leakage current 2.5 mA ( 220 VAC, 60Hz )
Maximum inrush current 40 A, ( 10 msec or less )
On state voltage drop 2.5 VAC or less ( 2 A)
Surge absorber Varistor (387 ~ 473 V), C-R absorber
Off ! On 1 msec or less
Response time
On ! Off 1/2 cycle + 1 msec or less
Common method 8 point / 1COM
Internal current consumption 210 mA (when all outputs are on)
Operation indicator LED
External wiring 9 points terminal block connector ( M3×6 screw)
Weight 160 g
Wiring diagram
00
L
01
L
100 ~ 240 VAC
02
L
03
L
04
L
05
L
06
L
07
L
7-18
Chapter 7 I/O modules MASTER-K
0
00 L 1
L 1
01 2 1 L 2
02 3
03 4 100 ~ 240VAC
100 ~ 240VAC
04 5
05 6 7 L 8
06 7
07 8 COM1
9 9
08
L 10 8
09 11 L 10
0A
12 9 L 11
0B 13
100 ~ 240VAC
0C
14 100 ~ 240VAC
0D 15
0E 16 F L 17
0F 17
18 COM2
18
N.C 19
N.C 20 N.C 19
N.C 20
7-19
Chapter 7 I/O modules MASTER-K
Type K1000S
Item K7Y-302S
Output points 32 points
Insulation method Photo coupler
Rated load voltage 100 ~ 240 VAC ( 50 / 60 Hz )
Maximum load voltage 264 VAC
Maximum load Per 1point 1A
current Per 1 COM 5A
Minimum load current 20 mA
Leakage current 2.5 mA ( 220 VAC, 60Hz )
Maximum inrush current 25 A, ( 10 msec or less )
On state voltage drop 1.5 VAC or less ( 1 A)
Surge absorber Varistor (387 ~ 473 V), C-R absorber
Off ! On 1 msec or less
Response time
On ! Off 1/2 cycle + 1 msec or less
Common method 8 point / 1COM
Internal current consumption 600 mA (when all outputs are on)
Operation indicator LED
External wiring 38 points terminal block connector ( M3×6 screw)
Weight 600 g
Wiring diagram
00
L 1
01 2
02 3
03 4
100 ~ 240VAC
04 5
05 6
06 7
07 8
9
18
L 28
19 29
1A 30
100 ~ 240VAC
1B 31
1C 32
1D 33
1E 34
1F 35
36
N.C 37
N.C 38
7-20
Chapter 7 I/O modules MASTER-K
0
L 1
00 00
L L 1 1
01 01 2 L 2
02 02 3
03 03 4
04 04 5 7 L
05 05 6 8
06 06 7
07 07 8 9
08 9
09 10 10
08
0A L 11 8
0B 09 12 L 11
0C 0A 13 9
0D 0B 14 L 12
0E 0C 15
L 0F 0D 16
0E 17 F
0F 18 L 18
19
20 19
20
7-21
Chapter 7 I/O modules MASTER-K
00
L 00
1
L 1
01 01 2
20
02 2
02 3
03 21 03 4
04 3
05 22
0C 13
0D 14
0E 15
0F 16
17
10 18
18 14 L 19
19 11
1A
32 20
14 12 21
1B 33 13
1C 15 22
1D 34
1E 16
L 1F 35
1E 33
17
36 1F 34
18
37
35
19
36
N.C 37
N.C 38
7-22
Chapter 7 I/O modules MASTER-K
Type K1000S
Item K7Y-403S
Output points 64 points
Insulation method Photo coupler
Rated load voltage 12 / 24 VDC
Operating load voltage 10.2 ~ 26.4 VDC
Maximum load Per 1 point 0.1 A / 1 point
current Per 1 COM 2 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 0.4 A, 10 msec or less
On state voltage drop 1.0 VDC or less
Surge absorber None
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 32 point / 1COM
Internal current consumption 300mA (all outputs are on)
External power Voltage 10.2 ~ 26.4 VDC
supply Current Max. 100mA per 1com ( 24VDC )
Operation indicator LED
External wiring 40 Pin D-sub connector ( 2 connectors )
Weight 420 g
Wiring diagram
[ Connector 1 ] [ Connector 2 ]
00 L 1 21 L 10 20 L 1 21 L 30
01 L 2 22 L 11 21 L 2 22 L 31
02 L 3 23 L 12 22 L 3 23 L 32
03 L 4 24 L 13 23 L 4 24 L 33
04 L 5 25 L 14 24 L 5 25 L 34
05 L 6 26 L 15 25 L 6 26 L 35
0E L 15 35 L 1E 2E L 15 35 L 3E
0F L 16 36 L 1F 2F L 16 36 L 3F
17 37 17 37
18 38 18 38
19 39 19 39
20 40 20 40
7-23
Chapter 7 I/O modules MASTER-K
[ K3Y-204S ] [ K4Y-204S ]
00 00
L L 1
01 01 2
02 02 3
03 03 4
04 04 5
05 05 6
06 06 7
07 07 8
08 9
09 10
08
0A L 11
0B 09 12
0C 0A 13
0D 0B 14
0E 0C 15
0F 0D 16
0E 17
0F 18
19
20
7-24
Chapter 7 I/O modules MASTER-K
00
L 00
1
L 1
01 01 2
20
02 2
02 3
03 21 03 4
04 3
05 22
0C 13
0D 14
0E 15
0F 16
17
10 18
18 14 L 19
19 11
1A
32 20
14 12 21
1B 33 13
1C 15 22
1D 34
1E 16
L 1F 35
1E 33
17
36 1F 34
18
37
35
19
36
N.C 37
N.C 38
7-25
Chapter 7 I/O modules MASTER-K
Type K1000S
Item K7Y-404S
Output points 64 points
Insulation method Photo coupler
Rated load voltage 12 / 24 VDC
Operating load voltage 10.2 ~ 26.4 VDC
Maximum load Per 1 point 0.1 A / 1 point
current Per 1 COM 2 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 0.4 A, 10 msec or less
On state voltage drop 1.0 VDC or less
Surge absorber None
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 32 point / 1COM
Internal current consumption 300mA (all outputs are on)
External power Voltage 10.2 ~ 26.4 VDC
supply Current Max. 100mA per 1com ( 24VDC )
Operation indicator LED
External wiring 40 Pin D-sub connector ( 2 connectors )
Weight 420 g
Wiring diagram
[ Connector 1 ] [ Connector 2 ]
00 L 1 21 L 10 20 L 1 21 L 30
01 L 2 22 L 11 21 L 2 22 L 31
02 L 3 23 L 12 22 L 3 23 L 32
03 L 4 24 L 13 23 L 4 24 L 33
04 L 5 25 L 14 24 L 5 25 L 34
05 L 6 26 L 15 25 L 6 26 L 35
0E L 15 35 L 1E 2E L 15 35 L 3E
0F L 16 36 L 1F 2F L 16 36 L 3F
17 37 17 37
18 38 18 38
19 39 19 39
20 40 20 40
7-26
Chapter 8 Power supply modules
When select a power supply module of PLC system, it should be considered that the total
current consumption of CPU module, digital I/O modules, special purpose modules, and
communication modules. If the power capacity of power supply module is smaller than the total
current consumption of PLC system, it may cause a malfunction on operation. The following
table shows a current consumption of MASTER-K 200S/300S/1000S series.
8.1.1 K200S
(unit : mA)
Current Current
Module Catalog No. Module Catalog No.
consumption consumption
K3P-07AS 170 A/D conversion K3F-AD2A 50
CPU K3P-07BS 210 K3F-DV2A 50
D/A conversion
K3P-07CS 170 K3F-DI2A 50
K3X-110S 40 High speed counter K3F-HSCA 220
K3X-210S 70 Positioning K3F-POPA 345
12/24VDC input K3X-240S 70 Cnet link K3F-CU2A 140
K3X-310S 75 K3F-CU4A 180
K3X-340S 75 Fnet I/F K3F-FUEA 215
110VAC input K3X-120S 41 Fnet remote I/F K3F-RBEA 215
220VAC input K3X-130S 41
K3Y-101S 210
Relay output
K3Y-201S 400
K3Y-203S 180
Transistor output
K3Y-204S 170
K3Y-303S 140
K3Y-304S 145
Triac output K3Y-102S 190
8-1
Chapter 8 Power supply modules MASTER-K
8.1.2 K300S
Current Current
Module Catalog No. Module Catalog No.
consumption consumption
CPU K4P-15AS 130 K4F-AD2A 400
A/D conversion
K4X-210S 70 K4F-AD3A 500
K4X-240S 70 K4F-DA1A 450
12/24VDC input
K4X-310S 125 K4F-DV2A 400
K4X-340S 125 D/A conversion K4F-DI2A 680
110VAC input K4X-220S 70 K4F-DV3A 700
220VAC input K4X-230S 70 K4F-DI3A 60
Relay output K4Y-201S 100 High speed counter K4F-HSCA 300
K4Y-202S 330 K4F-POPA 400
Triac output Positioning
K4Y-205S 330 K4F-POPB 400
K4Y-203S 120 Thermo couple K4F-TC2A 450
K4Y-204S 120 RTD K4F-RD2A 600
Transistor outputt
K4Y-303S 160 PID control K4F-PIDA 200
K4Y-304S 160 Analog timer K4F-AT3A 00
Interrupt input K4F-INTA 65 Cnet link K4F-CUEA 100
Fnet I/F K4F-FUEA 160
Fnet remote I/F K4F-RBEA 150
8-2
Chapter 8 Power supply modules MASTER-K
8.1.3 K1000S
Current Current
Module Catalog No. Module Catalog No.
consumption consumption
CPU K7P-30AS 130 K7F-AD4A 700
K7X-210S 70 A/D conversion K7F-AD4B 540
12/24VDC input K7X-310S 125 K7F-AD3A 500
K7X-410S 120 K7F-DV4A 350
K7X-220S 70 K7F-DI4A 250
110VAC input D/A conversion
K7X-320S 120 K7F-DV3A 700
K7X-230S 70 K7F-DI3A 60
220VAC input
K7X-330S 120 High speed counter K7F-HSCA 300
K7Y-201S 100 K7F-POPA 400
Relay output Positioning
K7Y-301S 200 K7F-POAA 700
K7Y-202S 330 Thermo couple K7F-TC4A 450
Triac output
K7Y-302S 600 RTD K7F-RD3A 800
K7Y-203S 120 PID control K7F-PIDA 300
K7Y-303S 200 Analog timer K7F-AT3A 300
Transistor outputt K7Y-304S 200 Cnet link K7F-CUEA 100
K7Y-403S 300 K7F-FUEA 170
Fnet I/F
K7Y-404S 300 K7F-FUOA 130
Interrupt input K7F-INTA 200 K7F-RBEA 160
Fnet remote I/F
K7F-RBOA 130
8-3
Chapter 8 Power supply modules MASTER-K
8.2 Specifications
24VDC : 0.3A
-15VDC : 0.2A -15VDC : 0.2A
5VDC : 2.2A 5VDC : 2.2A
Over current 5VDC : 2.2A
+15VDC : 0.55A 5VDC : 2.2A +15VDC : 0.55A
protection 24VDC : 0.33A
-15VDC : 0.22A -15VDC : 0.22A
Indicator LED (Turns on when output voltage is normal)
Wire specification 0.75 ~ 2mm2
Weight1 320 g 190 g
Caution
When a K200S system includes an A/D or D/A module, K3S-304S or K3S-014S module
should be chosen for the power supply. Otherwise, A/D or D/A module can not operate due to
lack of ±15VDC power supply.
8-4
Chapter 8 Power supply modules MASTER-K
8-5
Chapter 8 Power supply modules MASTER-K
No Name Descriptions
1 Power LED Indicates the status of 5VDC output
2 Fuse and fuse holder Protection fuse and holder ( K200S : mounted on the PCB )
3 Power input terminal Connect incoming power source ( AC or DC power )
4 LG terminal Line ground
5 24VDC, 24VG terminals 24VDC service power for output modules (relay, TR)
6 FG terminal Frame ground
8-6
Chapter 9 Base boards and cables
9.1 Specifications
1) K200S series
Type
K3B-4MS K3B-6MS K3B-8MS
Item
No. of slots 4 slots 6 slots 8 slots
Dimension 244 × 110 × 62 314 × 110 × 62 384 × 110 × 62
Mounting hole φ 4.5 ( M4 screw )
Screw for FG BHM 3 × 6 washer
Weight 240 g 350 g 750 g
2) K300S series
Type
K4B-4MS K4B-6MS K4B-8MS K4B-12MS1
Item
No. of slots 4 slots 6 slots 8 slots 12 slots
Dimension (mm) 297 × 135 × 17 367 × 135 × 17 437 × 135 × 17 540 × 135 × 17
Mounting hole φ 4.5 ( M4 screw )
Screw for FG BHM 3 × 6 washer
Weight 850 g 1,100 g 730 g 850 g
3) K1000S series
Type
K7B-4MS K7B-6MS K7B-8MS
Item
No. of slots 4 slots 6 slots 8 slots
Dimension (mm) 297 × 250 × 17 367 × 250 × 17 437 × 250 × 17
Mounting hole φ 4.5 ( M4 screw )
Screw for FG BHM 3 × 6 washer
Weight 1,700 g 2,100 g 2,500 g
1
The K4B-12MS can not be connected with expansion base.
9-1
Chapter 9 Base boards and cables MASTER-K
1) K300S series
Type
K4B-4ES K4B-6ES K4B-8ES
Item
No. of slots 4 slots 6 slots 8 slots
Dimension (mm) 297 × 135 × 17 367 × 135 × 17 437 × 135 × 17
Mounting hole φ 4.5 ( M4 screw )
Screw for FG BHM 3 × 6 washer
Weight 900 g 1,150 g 1,400 g
2) K1000S series
Type
K7B-4ES K7B-6ES K7B-8ES
Item
No. of slots 4 slots 6 slots 8 slots
Dimension (mm) 297 × 250 × 17 367 × 250 × 17 437 × 250 × 17
Mounting hole φ 4.5 ( M4 screw )
Screw for FG BHM 3 × 6 washer
Weight 1,700 g 2,100 g 2,500 g
1) K300S series
Type
G4C-E041 G4C-E121 G4C-E301
Item
Length 0.4 m 1.2 m 3.0 m
Weight 210 g 520 g 1,090 g
2) K1000S series
Type
G3C-E061 G3C-E121 G3C-E301
Item
Length 0.6 m 1.2 m 3.0 m
Weight 370 g 520 g 1,270 g
9-2
Chapter 9 Base boards and cables MASTER-K
Guide rail
I/O module connector
CPU module connector
2) K300S
9-3
Chapter 9 Base boards and cables MASTER-K
3) K1000S
9-4
Chapter 9 Base boards and cables MASTER-K
1) K300S
2) K1000S
9-5
Chapter 10 Installation and wiring
10.1 Installation
The MASTER-K series is designed to have good reliability and durability in any installation
environment. However, please avoid installing the PLC at the following locations to assurance
the reliability and durability of PLC system.
1) Where temperature may experience ambient drops or rising over 0 ~ 55°C (32 ~ 131°F)
2) Where condensation may occur due to abrupt temperature changes
3) Where vibration and shock are directly transmitted to the PLC
4) Where the PLC is exposed to the direct rays of the sun
5) Where the PLC is exposed to corrosive or inflammable gas
6) Where the PLC is exposed to conductive powder
1) During drilling or wiring, do not allow any wire scraps to enter into the PLC.
2) Install the PLC on locations that are convenient for operation.
3) Make sure that it is not located on the same panel that high voltage equipment located..
4) Make sure that the distance from walls of duct and external device be 50 mm or more.
5) Be sure to be grounded to locations that have good ambient noise immunity.
1) When installing the PLC in a closed control box, be sure to design heat protection of
control box with consideration of the heat generated by the PLC itself and other devices.
2) It is recommended that filters or closed heat exchangers be used.
10-1
Chapter 10 Installation and wiring MASTER-K
The following shows the procedure for calculating the PLC system power consumption.
1) PLC system power consumption block diagram
10-2
Chapter 10 Installation and wiring MASTER-K
The sum of the above values is the power consumption of the entire PLC system.
• W = W PW + W 5V + W 24V + W OUT + W IN + W S (W)
Check the temperature rise within the control panel with calculation of that total power
consumption(W).
10-3
Chapter 10 Installation and wiring MASTER-K
10-4
Chapter 10 Installation and wiring MASTER-K
Terminal block
Check its fixing. During drilling or wiring, do not allow any wire scraps to enter into the
PLC. It can cause malfunction and fault.
Be cautious that strong shock does not applied to the I/O module. Do not separate
the PCB from its case.
board
board
10-5
Chapter 10 Installation and wiring MASTER-K
[Fig.10.2] Clearance from the front device [Fig. 10.3] Vertical mounting [Fig 10.4] Horizontal mounting
10-6
Chapter 10 Installation and wiring MASTER-K
1) K200S
Insert a module to an empty slot along the guide rail until the hook is locked with the
base board.
Check that the module is firmly locked into the base board.
Hook
Locking part for hook
Guide rail
Locked hook
Remark
The CPU module should be mounted the next slot of the slot for power supply module. If the
CPU module is inserted on other slots and the K3S-304 or K3S-014 is used, the CPU module
is damaged by the ±15VDC supplied from the power module.
10-7
Chapter 10 Installation and wiring MASTER-K
2) K300S
Insert the module fixing projections in the upper part into the module fixing hole in the
base board.
Install the module onto the base board by pushing the bottom forward and fix it onto
the base board with module fixing screws.
Check that the module is firmly mounted onto the base board by pulling the upper
part of the module.
10-8
Chapter 10 Installation and wiring MASTER-K
3) K1000S
Insert the module fixing projections in the lower part into the module fixing hole in the
base board.
Install the module onto the base board by pushing the top forward.
Check that the module is firmly mounted onto the base board by pulling the upper
part of the module.
Remark
When the PLC system is located at the place with a serious vibration and shocks, fix a
module to a base board more surely by fastening a screw.
10-9
Chapter 10 Installation and wiring MASTER-K
1) K200S
10-10
Chapter 10 Installation and wiring MASTER-K
2) K300S
First, release the module fixing screws in the bottom from the base board.
While pushing the hook latch, pull the upper part of the module toward you.
While lifting the module upwards and remove the module hook from the module fixing
hole.
10-11
Chapter 10 Installation and wiring MASTER-K
3) K1000S
10-12
Chapter 10 Installation and wiring MASTER-K
10.3 Wiring
The followings explains the wiring instructions for use of the system.
10-13
Chapter 10 Installation and wiring MASTER-K
5) Twist the 110 VAC, 220 VAC, and 24 VDC cables as closely as possible. Connect
modules with the shortest possible wire lengths.
6) To minimize voltage drop, use the thickest (max. 2 mm2 ) wires possible for the 100 VAC,
200VAC and 24 VDC cables.
7) Do not bundles the 100 VAC and 24 VDC cables with main-circuit(high voltage, large
current) wires or the I/O signal wires. If possible, provide more than 100 mm distance
between the cables and wires.
8) As a lightning-protection measure, connect a surge absorber as shown below.
10-14
Chapter 10 Installation and wiring MASTER-K
1) Applicable size of wire for I/O wiring is 0.3 to 2 mm2. However, it is recommended to use
wire of 0.3mm2 for convenience.
2) Separate the input and output lines.
3) I/O signal wires must be at least 100 mm away from high voltage and large current main
circuit wires.
4) When the I/O signal wires cannot be separated from the main circuit wires and power
wires, ground on the PLC side with batch-shielded cables.
10.3.3 Grounding
1) This PLC has sufficient protection against noise, so it can be used without grounding
except for special much noise. However, when grounding it should be done conforming to
below items.
2) Ground the PLC as independently as possible. Class 3 grounding should be used
(grounding resistance 100 Ω or less).
3) When independent grounding is impossible, use the joint grounding method as shown in
the figure below (B).
10-15
Chapter 10 Installation and wiring MASTER-K
(A) Independent grounding : Best (B) Joint grounding : Good (C) Joint grounding : Not allowed
4) Use 2 mm2 or more wire for grounding line. Make the distance as short as possible with
the grounding point located to nearest to the PLC.
5) Ground LG (Power Supply Module) separately with FG (Base board).
(A) Independent grounding : BEST (B) Joint grounding : GOOD (C) Joint Grounding : Not Allowed
Cable Specifications ( )
Kinds of external connection
Minimum Maximum
Digital Input 0.18 (AWG 24) 1.5 (AWG16)
Digital Output 0.18 (AWG24) 2.0 (AWG14)
Analog Input/Output 0.18 (AWG24) 1.5 (AWG16)
Communication 0.18 (AWG24) 1.5 (AWG16)
Main Power 1.5 (AWG16) 2.5 (AWG12)
Grounding 1.5 (AWG16) 2.5 (AWG12)
10-16
Chapter 11 Maintenance
11 Maintenance............................................................................................. 11-1
11.1 Maintenance and inspection .................................................................................. 11-1
11.2 Daily inspection....................................................................................................... 11-2
11.3 Periodic inspection ................................................................................................. 11-3
Chapter 11 Maintenance MASTER-K
11 Maintenance
Be sure to perform daily and periodic maintenance and inspection in order to keep the PLC
system in the best conditions.
The most of parts of PLC modules are consist of semiconductor devices, and their service life is
semi-permanent. However, a bad environment can shorten the lifetime of parts or cause a
defection of PLC system. Therefore, check the followings items one or two times in a six months.
11-1
Chapter 11 Maintenance MASTER-K
Retighten
Screws should not be
Check for loose terminal screws terminal
Connecting loose
screws
conditions of
terminal block Check the distance between solderless Proper clearance should
Correct
or extension terminals be provided
cable
Connectors should not be
Check connectors of extension cable Correct
loose
Power ON(OFF indicates an
Check that the LED is ON
LED error)
Run ON(ON or flickering
Check that the LED is ON during Run
Indicating LED
11-2
Chapter 11 Maintenance MASTER-K
Check the following items once or twice every six months, and perform the needed corrective
actions.
Check Items Checking Methods Judgment Corrective Actions
temperature 0 to 55°C
environment
Measure with
Ambient
Ambient
thermometer and 5 to 95% RH
humidity
hygrometer Measure
corrosive gas There should be no corrosive
Ambiance
gases
The module should be
Looseness, play Move the unit
conditions
mounted securely
PLC
11-3
Chapter 12 Troubleshooting
12 Troubleshooting
This chapter explains the types of conditions that might cause an error to be reported and gives
suggestions on how to resolve the problem.
The reliability of PLC system not only depends on reliable equipment but also on fast and
suitable corrective actions when an error occurs.
To resolve a problem of PLC system quickly, it is most important to find the cause of the
problem. The followings describe how to find the cause of problem.
1) Visual checks
Operation status of system ( stop or running )
Power supplying status ( on or off )
The status of I/O module
The external wiring ( I/O, expansion and communication cables )
The contents of error flags ( check by connecting handy loader or KGL-WIN after
above items are completed )
12-1
Chapter 12 Troubleshooting MASTER-K
12.2 Troubleshooting
Is power supplied to NO
power module?
Supply the power
NO
NO Is power LED YES
turned on?
YES
NO Is power LED YES
turned on?
12-2
Chapter 12 Troubleshooting MASTER-K
NO
Does it operate NO
normally?
YES
12-3
Chapter 12 Troubleshooting MASTER-K
NO
NO
YES
12-4
Chapter 12 Troubleshooting MASTER-K
YES
NO
NO
Remark
Please refer the chapter 12.4 for troubleshooting when the input signal or external output load
doesn’t turn off.
12-5
Chapter 12 Troubleshooting MASTER-K
YES
YES
12-6
Chapter 12 Troubleshooting MASTER-K
If you need to contact LGIS for assistance, please fill the following questionnaire form before
call or fax to the nearest LGIS representative.
If you have a problem with special function module or communication module, fill the
questionnaire form included the module also.
12-7
Chapter 12 Troubleshooting MASTER-K
Input signal Leakage current of external device (Drive • Connect an appropriate register which will
does not by switch with LED indicator) make the voltage across input module
turn OFF terminal and common higher than the OFF
voltage, as shown below
Input signal • Sneak current due to the use of two • Use only one power supply
does not different power supplies
• Connect a sneak current prevention
turn OFF
diode(Figure below)
12-8
Chapter 12 Troubleshooting MASTER-K
When the load is • Leakage current by surge absorbing • Drive the C-R timer using the relay.
C-R type timer, circuit which is connected to output element
• Use other timer than the C-R timer.
time constant in parallel
fluctuates Some timers have half-ware rectified
internal circuits therefore, be cautious.
12-9
Chapter 12 Troubleshooting MASTER-K
(Continued)
Condition Cause Corrective Action
The load does • Sneak current due to the use of two • Use only one power supply
not turn OFF different power supplies
• Connect a sneak current prevention
diode(Figure below)
12-10
Chapter 12 Troubleshooting MASTER-K
Error Corrective
Error CPU state Message Cause
Code Actions
Fault of some area of
Internal SYSTEM Contact the service
0001h Stop operating ROM, or H/W
system error ERROR center.
defect
OS ROM OS ROM Internal system ROM is Contact the service
0002h Stop
error ERROR defected center.
OS RAM OS RAM Internal system RAM is Contact the service
0003h Stop
error ERROR defected center.
Data RAM DATA RAM Contact the service
0004h Stop Data RAM is defected
error ERROR center.
Program PGM RAM Contact the service
0005h Stop Program RAM is defected
RAM error ERROR center.
Defect of dedicated LSI for
Gate array G/A Contact the service
0006h Stop sequence instruction
error ERROR center.
processing
Sub rack SUB
Extension Rack Power Check the power of
0007h power down Stop POWER
down or Error the extension rack
error ERROR
Turn the power off
OS WDT OS WDT and restart the
0008h Stop CPU OS watch dog error
error ERROR system. Contact
the service center.
COMMON
Common Common RAM interface Contact the service
0009h Stop RAM
RAM error error center.
ERROR
Check the fuse
LED of the unit.
Fuse break Continue I/O FUSE Break of fuse used in output
000Ah Turn the power off
error (stop) ERROR units or Mixed I/O
and replace the
fuse.
Instructions unreadable by
Instruction OP CODE Contact the service
000Bh Stop the CPU are included.
code error ERROR center.
(during execution)
Flash
USER Read to/Write from the
memory Check and replace
000Ch Stop MEM inserted Flash memory is
error(during the flash memory.
ERROR not performed.
execution)
① Turn the power
① Mounting/dismounting of off and mount the
I/O units during operation, unit firmly, and
I/O SLOT
0010h I/O slot error Stop or connection fault restart the system.
ERROR
② I/O unit defect or ② Replace the I/O
extension cable defect unit or extension
cable.
Points of mounted I/O units
overrun the maximum I/O
Maximum I/O MAX I/O Replace the I/O
0011h Stop points. (FMM mounting
error ERROR unit.
number over error,
MINI_MAP over…)
Special card
SPECIAL Contact the service
0012h interface Stop Special Card Interface error
I/F ERROR center.
error
FMM 0 I/F FMM 0 I/F Contact the service
0013h Stop FMM 0 I/F Error
error ERROR center.
FMM 1 I/F FMM 1 I/F Contact the service
0014h Stop FMM 1 I/F Error
error ERROR center.
12-11
Chapter 12 Troubleshooting MASTER-K
(Continued)
Error Corrective
Error CPU state Message Cause
Code Actions
FMM 2 I/F FMM 2 I/F Contact the
0015h Stop FMM 2 I/F Error
error ERROR service center.
FMM 3 I/F FMM 3 I/F Contact the
0016h Stop FMM 3 I/F Error
error ERROR service center.
Correct the
Parameter PARAMETE A written parameter has
0020h Stop content of the
Error R ERROR changed, or checksum error
parameter.
Correct the
When the power is applied or
content of the
I/O RUN starts, I/O unit
Stop I/O PARA parameter, or
0021h Parameter reservation information
(continue) ERROR reallocate or
Error differs from the types of real
replace the I/O
loaded I/O units.
unit.
The point of the reserved I/O
Correct the
Maximum I/O PARA information or real loaded I/O
0022h Stop content of the
I/O Over ERROR units overruns the maximum
parameter.
I/O point.
FMM 0 FMM 0
Correct the
0023h Parameter Stop PARA FMM 0 Parameter Error
parameter.
Error ERROR
FMM 1 FMM 1
Correct the
0024h Parameter Stop PARA FMM 1 Parameter Error
parameter.
Error ERROR
FMM 2 FMM 2
Correct the
0025h Parameter Stop PARA FMM 2 Parameter Error
parameter.
Error ERROR
FMM 3 FMM 3
Correct the
0026h Parameter Stop PARA FMM 3 Parameter Error
parameter.
Error ERROR
• A digit of other than 0 to 9
has met during BCD
conversion. Correct the
Operation OPERATION
0030h Stop content of the
Error ERROR • An operand value is error step.
outside the defined operand
range.
Check the
maximum scan
Continue time of the
WDT OVER Scan time has overrun the
0031h WDT Over program and
(stop) ERROR watch dog time.
modify the
program or insert
programs.
Program
replacement has
Error of An error has occurred at not been
PGM
Program program change during run. completed during
0032h Stop CHANGE
Change (NO SBRT, JME and END run. (JMP ~ JME,
ERROR
during run. …) FOR ~ NEXT,
CALLx and
SBRTx …)
Program CODE
An error has occurred while
0033h Check Continue CHECK Correct the error.
checking a program.
Error ERROR
12-12
Chapter 12 Troubleshooting MASTER-K
(Continued)
Error Corrective
Error CPU state Message Cause
Code Actions
CODE
Code Check An instruction unreadable Correct the error
0040h Stop CHECK
Error by the CPU is included. step.
ERROR
Missing the Insert the END
END MISS END The program does not instruction at the
0041h Stop
instruction in ERROR have the END instruction. bottom of the
the program. program.
Missing the Insert the END
The subroutine does not
RET MISS RET instruction at the
0042h Stop has the RET instruction at
instruction in ERROR bottom of the
its bottom.
the program. program.
Missing the
SBRT
instruction in MISS SBRT The subroutine does not Insert the SBRT
0043h Stop
the ERROR has the SBRT instruction. instruction.
subroutine
program.
The JMP ~
JME JMP(E) The JMP ~ JME instruction Correct the JMP ~
0044h Stop
instruction ERROR error JME instruction.
error
The FOR ~
NEXT FOR~NEXT The FOR ~ NEXT Correct the FOR ~
0045h Stop
instruction ERROR instruction error NEXT instruction.
error
The MCS ~
Correct the MCS ~
MCSCLR MCS~MCSC The MCS ~ MCSCLR
0046h Stop MCSCLR
instruction LR ERROR instruction error
instruction.
error
The MPUSH
MPUSH ~ Correct the
~ MPOP The MPUSH ~ MPOP
0047h Stop MPOP MPUSH ~ MPOP
instruction instruction error
ERROR instruction
error
Dual coil DUAL COIL Timer or counter has been Correct timer,
0048h Stop
error ERROR duplicated. counter.
Input condition error, or too
SYNTAX Check and correct
0049h Syntax error Stop much use of LOAD or
ERROR the program.
AND(OR) LOAD.
Replace the
BATTERY Backup battery voltage
0050h Battery error Continue battery under the
ERROR error
present condition.
12-13
Chapter 13 RS-232C function of K200S
13.1 Introduction
The K200S A and C type (K3P-07AS and K3P-07CS) have built-in RS-232C communication
function and those CPU modules can perform RS-232C communication without external Cnet
I/F module. Although the all functions of external Cnet I/F module are not supported, it is very
useful function for users who want to construct simple and low-cost RS-232C network. The
K200S A and C type CPU provide following RS-232C communication functions;
Individual reading
Continuous reading
Individual writing
Continuous writing
CPU operation status monitoring
Register monitoring number
Monitoring execution
Remark
Because the built-in RS-232C communication functions only support a part of all functions of
external Cnet module, there are some limitations as followings;
1. Only RS-232C protocol is supported. ( K200S B type CPU, K3P-07BS, supports RS-
422/485 protocol )
2. Only 1:1 communication is available.
3. The K200S CPU module has only one RS-232C connector, loader (KGL-WIN or handy
loader) communication and the built-in RS-232C communication shares the RS-232C
connector. Please refer chapter 13.3 for detail pin-out of RS-232C connector.
4. Some error codes of external Cnet module and built-in RS-232C communication are
different each other. Therefore, please be sure to refer an error code list of the user’s
manual of corresponding unit.
13-1
Chapter 13 RS-232C function of K200S MASTER-K
P C O
P I
W U
U N
R T
P C O
P I
W U
U N
R T
13-2
Chapter 13 RS-232C function of K200S MASTER-K
Pin Pin
Function Function
number number
1 N.C. 6 N.C.
2 Rx for loader communication 7 Tx for built-in Cnet function
3 Tx for loader communication 8 N.C.
4 RX for built-in Cnet function 9 N.C.
5 Ground ( common )
5 5 5
9 9 9
4 4 4
8 8 8
3 3 3
7 7 7
2 2 2
6 6 6
1 1 1
5 5 5
9 9 9
4 4 4
8 8 8
3 3 3
7 7 7
2 2 2
6 6 6
1 1 1
13-3
Chapter 13 RS-232C function of K200S MASTER-K
(Max. 256byte)
Frame
Station No
Instruction
2) ACK response frame (CPU ! External devices, when normal data is received)
(Max. 256byte)
Frame
Station No
Instruction
3) NAK response frame (CPU ! External devices, when abnormal data is received)
(Max. 256byte)
Frame
Station No
Instruction
Remark
The following table describes several control codes. They are importantly used in serial
communication, so they should be well acquainted.
13-4
Chapter 13 RS-232C function of K200S MASTER-K
The following table shows instructions used in K200S dedicated built-in Cnet communication.
Instruction
Main instruction Instruction type
Item Description
ASCII ASCII
Symbol Symbol
code code
h72 Read a single bit or word from
Single r (R) SS h5353
Read
(h52) PLC
h72 Read a block (multiple bits or
Continuous r (R) SB h5342
(h72) words) from PLC
h77 Write a single bit or word to
Single w (W) SS h5353
Write
(h57) PLC
h77 Write a block (multiple bits or
Continuous w (W) SB h5342
(h57) words) to PLC
Monitoring
h78 Register devices to be
number x (X) – –
(h58) monitored
registration
Monitoring h79
y (Y) – – Execute monitoring function
execution (h59)
h72
Read CPU status r (R) ST h5354 Read a status of CPU module
(h52)
Remark
1. The CPU doesn’t care capital or small letter in frame. For example, ‘%MW100’ and
‘%mw100’ have same meaning. Only one exception is main instruction. If a small letter is
used, the BCC check is performed.
2. When read/write a bit, the last digit of address should be a capital letter.
Example) %mx001f (X)
%mx001F (O)
13-5
Chapter 13 RS-232C function of K200S MASTER-K
% M W 0 1 2 3
Device number
Data type
Device type
Start of data
13-6
Chapter 13 RS-232C function of K200S MASTER-K
Remark
When read or write S device, address should be assigned in word type although step
controllers are handled as bit. See following examples for details.
1. Turn on S00.07 : Write 07 to the %SW0000
2. Turn on S05.15 : Write 15 to the %SW0005
3. Clear S10 set : Write 00 to the %SW0010
4. Read S23 set : Read the %SW0023. Returned decimal number shows which
bit is turned on. ( If S23.47 is on, CPU will return h3437=47 )
When the data type is assigned as word, all device number is expressed in decimal
number. When the data type is bit, however, the last digit of device number is
hexadecimal number. ( other digits are decimal number )
Please refer the chapter 4.6.1 ‘ memory configuration’ or the ‘MASTER-K programming
manual’ for details.
Remark
In the above examples, device numbers are consist of 4 digits and it is the recommended
format of MASTER-K series. However, 2 ~ 8 digits can be used as device number.
13-7
Chapter 13 RS-232C function of K200S MASTER-K
Length of
Format Station Main Instruction Number of Frame
Header device Device definition Tail
name number instruction type blocks check
definition
Frame …
ENQ h20 R (r) SS h01 h06 %MW100 EOT BCC
example
ASCII
h05 h3230 h52 (h72) h5353 h3031 h3036 h254D57313030 h04
value
1 block
(Max. 16 blocks available)
BCC : When the main instruction is small character (r), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Number of blocks : It indicates how many blocks ( block : length of device definition +
device definition ) are following, and maximum number of blocks is 16. Therefore, the
range of block number is h01 ~ h10 (ASCII code : h3031 ~ h3130).
Length of device definition : It indicates that the device definition include ‘%’ occupies
how many bytes after converted to ASCII code (1byte = 2 ASCII codes). The
available range is h01 ~ h10 ( ASCII format : h3031 ~ h3130 )
Example : %MW000 = h06
%MX0000 = h07
Device definition : It indicates an actual address to be read. It should be consist of ‘%’,
device type (capital or small letter), and numbers only.
Remark
1. The ‘h’ is added to show the numeric data is hexadecimal format. When you write frame,
please do not add ‘h’ to actual numeric data.
2. All blocks in one frame should have same data type. If the data type of first block is bit and
that of second is word, an error will occurs.
13-8
Chapter 13 RS-232C function of K200S MASTER-K
1 block
(Max. 16 blocks available)
Station number, main instruction, instruction type, and number of blocks are same as
the request format.
When the main instruction is small character (r), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
The length of data indicates that the following data occupies how many bytes before
converted to ASCII code. It is determined on basis of the data type included in
request format.
In data area, the contents of assigned device are stored after converted to ASCII
code.
Example : When the contents is h48B0, the ASCII code will be h34384230
Remark
Although the data type is bit, the data should be a byte because the minimum data unit is a
byte. If the content of bit is 0, the data is h00 (ASCII code : h3030) and if the content is 1, the
data is h01(ASCII code : h3031).
13-9
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (r), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
5) Example
Read the contents of first word of P area ( P000 ) and 21th word of M area ( M020 ) from
the PLC of that station number is h01. Assume the contents of P000 is h1234, and M020
is h3456. ( No BCC check )
13-10
Chapter 13 RS-232C function of K200S MASTER-K
Length of
Format Station Main Instruction Number of Frame
Header device Device definition Tail
name number instruction type data check
definition
Frame
ENQ h10 R (r) SB h06 %MW100 h02 EOT BCC
example
ASCII
h05 h3130 h52 (h72) h5342 h3036 h254D57313030 h3032 h04
value
BCC : When the main instruction is small character (r), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Length of device definition : It indicates that the device definition include ‘%’ occupies
how many bytes after converted to ASCII code (1byte = 2 ASCII codes). The
available range is h01 ~ h10 ( ASCII format : h3031 ~ h3130 )
Example : %MW000 = h06
%PW0000 = h07
Device definition : It indicates an actual address to be read. It should be consist of ‘%’,
device type (capital or small letter), and numbers only.
Number of data : It indicates that how many words will be read from the start address.
The range is h01 ~ h3C (1 ~ 60).
Remark
The continuous reading command does not support bit data type.
13-11
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (r), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
Number of data : It indicates that the following data occupies how many bytes in
hexadecimal format (before converted to ASCII code). It can be obtained by
multiplying data type (1 word = 2 byte) and number of data in the request format.
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (r), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
13-12
Chapter 13 RS-232C function of K200S MASTER-K
5) Example
Read the contents of 2 words from the first word of M area (M000), and the station
number of PLC is 10 (h0A). Assume that the content of M000 is h1234 and M0001 is
h5678.
13-13
Chapter 13 RS-232C function of K200S MASTER-K
Length of
Format Station Main Instruction Number of Frame
Header device Device definition Tail
name number instruction type blocks check
definition
Frame …
ENQ h20 W (w) SS h01 h06 %MW100 EOT BCC
example
ASCII
h05 h3230 h57 (h77) h5353 h3031 h3036 h254D57313030 h04
value
1 block
(Max. 16 blocks available)
BCC : When the main instruction is small character (w), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Number of blocks : It indicates how many blocks ( block : length of device definition +
device definition ) are following, and maximum number of blocks is 16. Therefore, the
range of block number is h01 ~ h10 (ASCII code : h3031 ~ h3130).
Length of device definition : It indicates that the device definition include ‘%’ occupies
how many bytes after converted to ASCII code (1byte = 2 ASCII codes). The
available range is h01 ~ h10 ( ASCII format : h3031 ~ h3130 )
Example : %MW000 = h06
%MX0000 = h07
Device definition : It indicates an actual address where data is written. It should be
consist of ‘%’, device type (capital or small letter), and numbers only.
Data : This area contains the data to be written in ASCII code format. The length of
data is determined on basis of data type. If the data type is word, the length is 2 byte
(1word) and if the data type is bit, the length is 1 byte.
Example : Write 0 to a bit device : h00
Write 1 to a bit device : h01
Write h0001 to a word device : h0001
Write h1234 to a word device : h1234
13-14
Chapter 13 RS-232C function of K200S MASTER-K
Remark
1. The ‘h’ is added to show the numeric data is hexadecimal format. When you write frame,
please do not add ‘h’ to actual numeric data.
2. All blocks in one frame should have same data type. If the data type of first block is bit and
that of second is word, an error will occurs.
Format
Header Station number Main instruction Instruction type Tail Frame check
name
Frame
ACK h20 W (w) SS ETX BCC
example
ASCII
h06 h3230 h57 (h77) h5353 h03
value
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (w), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (w), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
13-15
Chapter 13 RS-232C function of K200S MASTER-K
5) Example
Write h1234 to the first word of P area ( P000 ) of the PLC of that station number is h01.
( No BCC check )
13-16
Chapter 13 RS-232C function of K200S MASTER-K
BCC : When the main instruction is small character (w), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Length of device definition : It indicates that the device definition include ‘%’ occupies
how many bytes after converted to ASCII code (1byte = 2 ASCII codes). The
available range is h01 ~ h10 ( ASCII format : h3031 ~ h3130 )
Example : %MW000 = h06
%PW0000 = h07
Device definition : It indicates an actual start address where data is written. It should
be consist of ‘%’, device type (capital or small letter), and numbers only.
Number of data : It indicates that how many words to be written from the start
address assigned by device definition. If the number of data is 5, for example, it
means that the length of data is 5 words. The range is 0 ~ 60 words (h00 ~ h3C)
Data : This area contains the data to be written in ASCII code format.
Remark
The continuous writing command does not support bit data type.
13-17
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and instruction type are same as the request format
When the main instruction is small character (w), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (w), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
13-18
Chapter 13 RS-232C function of K200S MASTER-K
5) Example
Write hAA15 and h056F to the P000 and P001 of station number h01. (Without BCC)
13-19
Chapter 13 RS-232C function of K200S MASTER-K
BCC : When the main instruction is small character (x), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Registration number : Max. 10 numbers can be registered. If a registration number is
already exist, the old registration number is replaced with new one.
Registration format
The registration format is same as the read single/continuous device command, but
the header, station number, EOT, and BCC is not included. See the following
examples for details.
a) Read single device
Main Instruction Number of Length of device
Device definition
instruction type blocks definition
…
R (r) SS h01 h06 %MW100
h52 (h72) h5353 h3031 h3036 h254D57313030
1 block
(Max. 16 blocks available)
13-20
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and registration number are same as the request
format.
When the main instruction is small character (x), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
Station number, main instruction, and registration number are same as the request
format.
When the main instruction is small character (x), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
13-21
Chapter 13 RS-232C function of K200S MASTER-K
5) Example
Register monitoring number 1 (Read D000 of station number 1)
13-22
Chapter 13 RS-232C function of K200S MASTER-K
1 block
(Max. 16 blocks available)
13-23
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and registration number are same as the request
format.
When the main instruction is small character (y), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
5) Example
Execute the registration number 1 of station number 1. Assume that reading single device
(D000, word) is already registered as number 1 and the contents of D000 is h3202. (No
BCC check)
13-24
Chapter 13 RS-232C function of K200S MASTER-K
BCC : When the main instruction is small character (r), the lower byte of summation from
ENQ to EOT is converted into ASCII format and added to frame as BCC check.
Station number, main instruction, and instruction type is same as those of the request
format.
When the main instruction is small character (r), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
Status data : The status data is consist of 20 byte of hexadecimal numbers. When the
PLC returns, it is converted to the ASCII code, and its size is doubled (40 bytes). See
the next page for detail of status data configuration.
13-25
Chapter 13 RS-232C function of K200S MASTER-K
! Byte
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Error CPU Key / O/S CPU
Not used Not used mode Flash Not used
code version type
CPU type
CPU type Code
K200S A (K3P-07AS) h3A
K200S B (K3P-07BS) h3B
K200S B (K3P-07CS) h3C
K300S A (K4P-15AS) h33
K300S B (K4P-07AS) h37
K1000S (K7P-30AS) h32
1 2
Key / Flash
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Not used Not used
CPU mode (Use only lower 4 bits) : Turn on one bit according to the operation
mode of master CPU.
bit 3 bit 2 bit 1 bit 0
DEBUG PAUSE STOP RUN
13-26
Chapter 13 RS-232C function of K200S MASTER-K
Station number, main instruction, and instruction type is same as those of the request
format.
When the main instruction is small character (r), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
5) Example
Read the CPU status of station number 1. (No BCC check)
13-27
Chapter 13 RS-232C function of K200S MASTER-K
Error
Error type Description Corrective action
code
h0001 PLC system error It is unable to interface with PLC Cycle the power of PLC
Make sure that there is no
characters other than
It is unable to convert ASCII
h0011 Data error alphabet, number, and ‘%’
codes to numeric data
in device definition and
data
Check instruction if other
h0021 Instruction error Wrong instruction character is used than R(r),
W(w), S(s), X(s), and Y(y).
Instruction type
h0031 Wrong instruction type Revise instruction type
error
Device memory Wrong device memory Use correct device (P, M, L,
h1132
error assignment K, T, C, F, S, or D)
The length of data is 0 or exceeds
h1232 Data length error Correct the length of data
120 bytes (60 words)
h2432 Data type error Wrong data type Use bit or word data type
Device definition Missing ‘%’ at the first of data Correct the data definition
h7132
format error definition format
The data definition (P, M, L, K, T, Correct the data definition
h2232 Range over error
C, F, S, or D) is out of its range not to exceed its range
The assigned monitor registration
Monitor execution Correct the monitor
h0190 number is not exist or over the
error registration number
range (0 ~ 9)
Monitor registration The registration number is out of Correct the registration
h0290
error range (0 ~ 9) number
Device definition error
Ex1) Wrong data type such as
‘%DX’ or ‘%SX’ (D and S area can
be accessed with ‘WORD’ type)
Correct the device
h6001 Syntax error Ex2) Wrong address definition definition format
such as ‘%px0’ (address definition
should be 2 ~ 8 digit)
Ex3) Try to write on F area (F area
is read-only memory)
h6010 Syntax error Over-run or frame error Cycle the power of PLC
Check the configuration of
RS-232C port of external
h6020 Syntax error Time-out error device
Cycle the power of PLC
Check the request frame
h6030 Syntax error Wrong request frame
has ENQ and EOT
13-28
Chapter 13 RS-232C function of K200S MASTER-K
Error
Error type Description Corrective action
code
Revise the frame not to
h6040 Syntax error The size of frame is over 256 byte
exceed 256 byte
h6050 Syntax error BCC error Check the BCC value
13-29
Chapter 14 RS-422/485 function of K200S
14.1 Introduction
1) The K200S B-type (K3P-07BS) includes the RS-422/485 communication function, and it
supports 1:N (master : slave) network between PLCs and external devices such as PC.
2) The communication parameters are set with the basic and high speed link parameter
setting of KGL-WIN or KLD-150S
3) The MASTER-K dedicated protocol is used.
14.2 Features
1) User can define a data access block up to 64 block and the data access block is consist
of 1 ~ 60 words.
2) Each data access blocks can have independent time-out setting.
3) Max. 32 station can join in the network.
4) There is a flag indicates the error count and error code of each high speed parameter
setting and it is updated whenever an error occurs.
5) User can monitor the communication status of each parameter setting through the
monitoring function of KGL-WIN.
14.3 Specification
Items Specification
Serial communication type RS-422/485
Protocol MASTER-K dedicated protocol
Synchronization Asynchronous
Transmission distance Max. 500m
Station number Max. 32 stations ( 00 ~ 31 )
Data bit 8 bits
Data
Stop bit 1 bits
type
Parity None
9600, 19200, 38400, 56000, 57600, 76800, 115200,
Transmission speed
128000 bps (Selectable)
14-1
Chapter 14 RS-422/485C function of K200S MASTER-K
14.4 Wiring
When construct a RS-422/485 network using K200S B type CPU module, please connect a
terminal resistor at the both ends of network. It prevent the signal from distortion by reflected
wave. The resistance value of terminal resistor should be equal to the characteristic impedance
of network cable (usually 120Ω, 1/2W resistor)
SG SG SG SG
FG FG FG FG
SG SG SG SG
FG FG FG FG
14-2
Chapter 14 RS-422/485C function of K200S MASTER-K
The K200S B type CPU has 5-pin connector for RS-422/485 interface. The following table
shows functions of each pin and connection with external device.
1) RS-422 network
Pin
CPU Signal direction External device
number
1 RDA + (receive signal) SDA + (send signal)
2 RDB – (receive signal) SDA – (send signal)
3 SDA + (send signal) RDA + (receive signal)
4 SDA – (send signal) RDB – (receive signal)
5 S.G (signal ground) S.G (signal ground)
2) RS-485 network
Pin
CPU Signal direction External device
number
1 RDA + (receive signal)
RS-485 +
2 RDB – (receive signal)
3 SDA + (send signal)
RS-485 –
4 SDA – (send signal)
5 S.G (signal ground) S.G (signal ground)
14-3
Chapter 14 RS-422/485C function of K200S MASTER-K
14-4
Chapter 14 RS-422/485C function of K200S MASTER-K
1 2 3 4 5 6
14-5
Chapter 14 RS-422/485C function of K200S MASTER-K
The D4400 ~ D4454 (55 words) are reserved for special register and they contain the error code,
error count, and error information.
14-6
Chapter 14 RS-422/485C function of K200S MASTER-K
B7 B6 B5 B4 B3 B2 B1 B0
Bit 0 : 0 = No error
1 = Error
Bit 1 ~ 3 Not used
Bit 4 ~ 7 Indicates operation mode
Bit 4 is on : STOP mode
Bit 5 is on : RUN mode
Bit 6 is on : PAUSE mode
Bit 7 is on : DEBUG mode
B15 B14 ….. B07 B06 B05 B04 B03 B02 B01 B0
…..
14-7
Chapter 14 RS-422/485C function of K200S MASTER-K
14-8
Chapter 15 The PID function of K200S
The PID control means a control action in order to keep the object at a set value (SV). It
compares the SV with a sensor measured value (PV : Present value) and when a difference
between SV and PV (E : the deviation) is detected, the controller output the manipulate value
(MV) to the actuator to eliminate the difference. The PID control consists of three control actions
that are proportional (P), integral (I), and differential (D).
15-1
Chapter 15 The PID function of K200S MASTER-K
= × [ × − ]
3) IF the Kp is too large, the PV reaches to the SV swiftly, but it may cause a bad effect like
oscillations shown in the Fig. 15.2
4) If the Kp is too small, oscillation will not occur. However, the PV reaches to the SV slowly
and an offset may appear between PV and SV shown in the Fig. 15.3
5) The manipulation value (MV) varies from 0 to 40,000. User can define the maximum
value of MV (MV_MAX) and the minimum value (MV_MIN) within the range 0 ~ 40,000.
6) When an offset remains after the system is stabilized, the PV can be reached to the SV
by adding a certain value. This value is called as ‘Bias’, and user can define the bias value in
sequence program.
Deviation
Set
value PID D/A conversion Process
+ operation and hold circuit (Actuator, sensor)
–
Present
value
A/D conversion
15-2
Chapter 15 The PID function of K200S MASTER-K
15-3
Chapter 15 The PID function of K200S MASTER-K
As shown in the expression, integral action can be made stronger or weaker by adjusting
integration time (Ki) in I action.
That is, the more integration time (the longer integration time) as shown in Fig. 15.5, the
less quantity added to or subtracted from the MV and the longer time is needed to make
PV reached the SV.
As shown in Fig. 15.6, when the integration time given is short the PC will approach the
SV in short time since the quantity added or subtracted become increased. However, if
the integration time is too short, a oscillation may occur. Therefore, the proper P and I
value is requested for stability of control system.
15-4
Chapter 15 The PID function of K200S MASTER-K
5) Integral action is used in either PI action in which P action combines with I action or PID
action in which P and D actions combines with I action.
Figure 15.5 The system response when a long integration time given
Fig. 15. 6 The system response when a short integration time given
15-5
Chapter 15 The PID function of K200S MASTER-K
5) Derivative action is used only in PID action in which P and I actions combine with D
action.
15-6
Chapter 15 The PID function of K200S MASTER-K
1) PID action controls the control object with the manipulation quantity produced by PID
action (P + I + D).
2) PID action with a constant deviation is shown as the following figure 15.8.
15-7
Chapter 15 The PID function of K200S MASTER-K
1) PID control has two kinds of action, forward action and reverse action. The forward
action makes the PC reaches to SV by outputting a positive MV when the PV is less than SV.
2) A diagram is which forward and reverse actions are drawn using MV, PV, and SV is
shown as figure 15.9.
3) The figure 2.10 shows examples of process control by forward and reverse actions,
respectively.
15-8
Chapter 15 The PID function of K200S MASTER-K
In general feedback control system shown as the figure 15.11, the deviation value is
obtained by the difference of PV and SV. P, I, and D operations are performed based on
this deviation value. However, each of P, I, and D operations use different deviation
values according to the characteristics of each control actions. The expression of PID
control is as following;
= + ∫
+
MV : Manipulate value
K : Proportional gain
Ti : Integral time
Td : Derivative time
Ep : Deviation value for proportional action
Ei : Deviation value for integral action
Ed : Deviation value for derivative action
= × −
= −
= −
The b if the first equation is called as reference value. It can be varied according to the
load disturbance of measurement noise.
PID
+ controller
Process
-1
15-9
Chapter 15 The PID function of K200S MASTER-K
The figure 15.12 shows the variation of PV according to the several different reference
values ( b ). As shown in the figure 15.12, the small reference value produces small
deviation value, and it makes the control system response be slow.
In general, control system is required to be adaptable to various external or internal
changes. Especially, it should shows a stable transit response with the sudden change of
the SV to be robust to load disturbance and/or measurement noise.
Fig. 15.12 The PI control with several reference values
All devices to be controlled, actuator, has limitation of operation. For example, the motor
has speed limit, the valve can not flow over the maximum value. When the control system
has wide PV range, the PV can be over the maximum output value of actuator. At this
time, the actuator keeps the maximum output regardless the change of PV while the PV
is over the maximum output value of actuator. It can shorten the lifetime of actuator.
When the I control action is used, the deviation term is integrated continuously. It makes
the output of I control action very large, especially when the response characteristic of
system is slow.
This situation that the output of actuator is saturated, is called as ‘windup’. It takes a long
time that the actuator returns to normal operating state after the windup was occurred.
15-10
Chapter 15 The PID function of K200S MASTER-K
The figure 15.13 shows the PV and MV of PI control system when the windup occurs. As
shown as the figure 15.13, the actuator is saturated because of the large initial deviation.
The integral term increase until the PV reaches to the SV (deviation = 0), and then start to
decrease while the PC is larger than SV (deviation < 0). However, the MV keeps the
saturated status until the integral term is small enough to cancel the windup of actuator.
As the result of the windup, the actuator will output positive value for a while after the PV
reached to the SV, and the system show a large overshoot. A large initial deviation, load
disturbance, or mis-operation can cause windup of actuator.
MV (without windup)
MV (with windup)
Integral term
Proportional term
15-11
Chapter 15 The PID function of K200S MASTER-K
There are several methods to avoid the windup of actuator. The most popular two
methods are adding another feedback system to actuator, and modeling the actuator. The
figure 15.14 shows the block diagram of the anti-windup control system using the model
of actuator.
E = -PV K × Td
Actuator model
MV U
E = SV-PV K + Actuator
– +
k / Ti + +
Es
1 / Tt
As shown in the figure 15.14, the anti-windup system feedback the multiplication of gain
(1/Tt) and Es to the input of integral term. The Es is obtained as the difference value
between actuator output (U) and manipulation value of PID controller (MV). The Tt of the
feedback gain is tracking time constant, and it is in inverse proportion with the resetting
speed of integral term. Smaller Tt will cancel the windup of actuator faster, but too small
Tt can cause anti-windup operation even in derivation operation. The figure 15.15 shows
several Tt value and PV in the PI control system.
Tt = 3
PV Tt = 2
Tt = 1
Tt = 0.1
SV
Time
Fig. 15.15 The PV output characteristics with different Tt values
15-12
Chapter 15 The PID function of K200S MASTER-K
In this chapter, it will described that how to get the discrete formula of the P, I, and D terms.
Then, the pseudo code of PIF control will be introduced.
15.3.1 P control
The discrete formula of P control is as following;
15.3.2 I control
The continuous formula of I control is as following;
∫
=
I(t) : integral term
+ = +
15-13
Chapter 15 The PID function of K200S MASTER-K
15.3.3 D control
The continuous formula of derivative term is as following;
× + = −
15-14
Chapter 15 The PID function of K200S MASTER-K
The MASTER-K series has 2 instructions for PID control as following table.
No Instruction Description
1 PIDCAL Execute PID operation
2 PIDTUN Execute auto tuning operation
Remark
The PID instructions (PIDCAL, PIDTUN) are available only K200S B and C type. (K3P-07BS
and K3P-07CS) With the K200S A type (K3P-07AS), these instructions are ignored.
15.4.1 PIDCAL
The PIDCAL instruction executes PID operation with given parameters, and output the
result to the specific devices. It occupies 37 words for its execution, so please be careful
that other instruction do not use the devices that are using for PID operation. To execute
PIDCAL instruction, all necessary parameters should be input at the specified devices.
The following table shows the device map for PIDCAL instruction.
PIDCAL xxxx
Device
Name Description Range
offset
+0 S_TIME Operation scan time 1 ~ 100
+1 MVMAN Manual operation value data 0 ~ 4000
+2 MV_MIN Minimum value of manipulation value 0 ~ 4000
+3 MV_MAX Maximum value of manipulation value 0 ~ 4000
+4 N High frequency noise depression ratio 1 ~ 10
+5 TT Tracking time constant 1 ~ 1000
+6 REF Reference value 1 ~ 10
+7 D_TIME The time constant of derivation operation (Td) 0 ~ 20000
+8 I_TIME The time constant of integral operation (Ti) 0 ~ 20000
+9 P_GAIN The proportional gain constant (K) 0 ~ 10000
+ 10 EN_D Enable / disable the derivative operation 0 or 1
15-15
Chapter 15 The PID function of K200S MASTER-K
(Continued)
Device
Name Description Range
offset
+ 11 EN_I Enable / disable the integral operation 0 or 1
+ 12 EN_P Enable / disable the proportional operation 0 or 1
+ 13 BIAS The bias value for offset compensation 0 ~ 4000
+ 14 PV The present value
+ 15 SV The set value data 0 ~ 4000
+ 16 F/R Select forward or reverse operation 0 or 1
+ 17 MAN Enable / disable manual operation 0 or 1
+ 18 STAT Shows an error code when error occurs
+ 19 MV The manipulation value (MV) output
+ 20 ERR The deviation between PV and SV
+ 21 P_VAL (LOW)
+ 22 P_VAL (HIGH)
+ 23 I_VAL (LOW)
Reserved for internal calculation
+ 24 I_VAL (HIGH)
+ 25 P_VAL (LOW)
+ 26 P_VAL (HIGH)
+ 27 Bi
+ 28 Ad
+ 29 Bd
+ 30 AO
+ 31 PV_OLD
System use only
+ 32 ACTUATOR_OUT
+ 33 REAL_MV (LOW)
+ 34 REAL_MV (HIGH)
+ 35 CORRUPT/STAGE
+ 36 TEMP_PV
1) S_TIME
The scan time in PID operation means the interval of sampling the present value (PV). In
general, the PID operation shows best performance when the S_TIME is synchronized
with external enable input. (The input condition of PIDCAL instruction)
The range of S_TIME is 0.1 ~ 10 seconds. However, when input S_TIME data into PLC
device, it is scaled up 10 times for more precise setting. Therefore, the actual range of
input data is 1 ~ 100.
15-16
Chapter 15 The PID function of K200S MASTER-K
2) MVMAN
In this area, the data that are output when the manual operation is enabled. When the
MAN is set as 1, the PIDCAL instruction output the MVMAN to MV regardless the PID
operation result. The setting range is 0 ~ 4000.
3) MV_MIN / MV_MAX
User can set limit point on the manipulation value as MV_MIN(the minimum value) and
MV_MAX(the maximum value).
4) N (high frequency noise depression ratio)
This parameter is used for derivative control operation, and shows the ratio of high
frequency noise depression. If there is a lot of high frequency noise in the control system,
select the N value as higher value. Otherwise, leave the N parameter as 1. The range of
N is 0 ~ 10 and it is not scaled up, so input the designated value directly.
5) TT (Tracking time constant)
This parameter is used to cancel anti-windup operation. The range of TT is 0.01 ~ 10 and
the actual input range that are 100 times scaled up is 0 ~ 1000.
6) REF (Reference value)
The REF may be useful parameter according to the control system type, especially
velocity, pressure, or flux control system. The range of REF input is 0.1 ~ 1, but it is 10
times scaled up when input REF into the PLC device (the actual range is 0 ~ 10).
7) D_TIME (Derivation time constant) / I_TIME (Integral time constant)
The range of D_TIME and I_TIME is 0.0 ~ 2000.0. However, the 10 times scaled up value
is used when input data into the PLC device. Therefore, the actual data range is 0 ~
20000.
8) P_GAIN (Proportional gain constant)
The range of P_GAIN is 0.00 ~ 100.00. Because the K200S CPU can not handle floating
point number, it should be scaled up 100 times when input P_GAIN into PLC device.
Therefore, the actual data range of P_GAIN is 0 ~ 10000.
9) EN_D / EN_I / EN_P (Control mode)
The built-in PID controller of K200S has four control modes as following table. The control
mode can be set by EN_D, EN_I, and EN_P words.
15-17
Chapter 15 The PID function of K200S MASTER-K
Remark
The other control modes other than P, PI, PID, and On/off operation are not allowed. For
example, PD or I operation is not available.
10) BIAS
The BIAS data is used for the compensation of offset in the proportional control. The
range is 0 ~ 4000.
11) SV (Set value)
SV (setting value : the designated value) and PV (process value : present value) of
K200S PID operation have the range 0 ~ 4000. The range is set with the consideration of
the resolution of A/D and D/A module of K200S series (12 bits) and offset value.
12) F/R (Forward / reverse operation)
The operation mode (forward or reverse) can be set with F/R word. If the value of F/R is 0,
the PIDCAL instruction performs forward operation. If the F/R is 1, reverse operation is
performed.
13) STAT
The PIDCAL instruction output a relevant error code when an error occurs during PID
operation. See the chapter 15.4.3 error code list for details
14) MV (Manipulation value)
The result of PID calculation is output to this word.
15-18
Chapter 15 The PID function of K200S MASTER-K
PIDTUN xxxx
Device
Name Description Range
offset
+0 S_TIME Operation scan time 1 ~ 100
+1 PV Present value of control object
+2 SV Set value 0 ~ 4000
Select the wave that are used for PID
+3 RIPPLE 0 or 1
parameter calculation
+4 STAT Error code
+5 MV Manipulation value of current loop
+6 P The output of calculated K
+7 I The output of calculated Ti
+8 D The output of calculated Td
+9 PV_OLD
+ 10 LIMIT
+ 11 ULTIMATE_TIME
+ 12 MAX_amplitude
+ 13 MIN_amplitude
System use only
+ 14 STAGE
+ 15 Region / Corrupt
+ 16 Temp_PV
+ 17 Amplitude
+ 18 Kc
15-19
Chapter 15 The PID function of K200S MASTER-K
2) SV (Set value)
SV (setting value : the designated value) and PV (process value : present value) of
K200S PID operation have the range 0 ~ 4000. The range is set with the consideration of
the resolution of A/D and D/A module of K200S series (12 bits) and offset value. When
setting the SV or PV, please be careful convert the analog value of control object
(temperature, velocity, etc.) to digital value that are the output of A/D convert module. For
example, assume that PID control is used for temperature control with Pt100 (operation
range : 0 °C ~ 250 °C), and the goal value is 100 °C. The equivalent digital output of A/D
module (voltage output range : 1 ~ 5V) is 1600 if the A/D module outputs 0 (1V) with 0 °C,
and 4000(5V) with 250 °C. Therefore, the input of SV should be 1600, not 100.
3) Ripple
The K3P-07BS and K3P-07CS CPU module perform auto-tuning operation based on the
frequency response method. PID parameters are obtained by On/Off operation during 1
cycle of PV variation. The RIPPLE parameter shows at which cycle the CPU module will
perform auto-tuning operation. If 0 is selected, the CPU will get PID parameters during
the first cycle of PV variation. If 1 is selected, the second cycle will be used. (refer figure
15.16 for detailed information) Other choice of RIPPLE parameter is not allowed. In
general case, select 1 for proper auto-tuning operation. The On/Off operation will be
occur at the 80% of PV value.
"
! !
4) STAT
The PIDAUT instruction output a relevant error code when an error occurs during PID
operation. See the chapter 15.4.3 error code list for details
5) P / I / D
The calculated PID parameters are output to these words.
15-20
Chapter 15 The PID function of K200S MASTER-K
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Bit 0 : Done
Turn on when the execution of PIDCAL instruction is completed.
Bit 1 ~ Bit 5 : Not used
Bit 6 : Q_MIN
Turn on when an error is detected with MV_MIN value.
Bit 7 : Q_MAX
Turn on when an error is detected with MV_MAX value.
Bit 8 ~ 15 : Error code (See following table for details)
Error code
Description Countermeasure
(Upper byte)
15-21
Chapter 15 The PID function of K200S MASTER-K
2) PIDAUT instruction
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Error code
Description Countermeasure
(Upper byte)
15-22
Chapter 15 The PID function of K200S MASTER-K
K3S- K3P-
304S 07BS Input Output A/D Input D/A Output
or module module module module module module
+5V K3P-
+15V 07CS
KGL-WIN
(V1.3 or later) PV : DC4 ~ 20mA
RS-232C (1 ~ 5V)
Electric oven
(0 ~ 200°C)
heater
Power converter
15-23
Chapter 15 The PID function of K200S MASTER-K
15-24
Chapter 15 The PID function of K200S MASTER-K
15-25
Chapter 15 The PID function of K200S MASTER-K
15-26
Chapter 15 The PID function of K200S MASTER-K
15-27
Chapter 16 Built-in high speed counter of K200S
Items Specifications
Types Phase A, Phase B, Preset
Input signal Rated level 24VDC (13mA)
Signal type Voltage input
Counting range 0 ~ 16,777,215 (Binary 24 bits)
Max. counting speed 50k pps
Up / Down 1-phase Sequence program or B-phase input
selection 2-phase Auto-select by phase difference of phase A and B
Multiplication 1, 2, or 4
Preset input Sequence program or external preset input
16-1
Chapter 16 Built-in high speed counter of K200S MASTER-K
Items Specifications
Rated input 24VDC (13mA)
A/B
On voltage 14VDC or higher
phase
Off voltage 2.5VDC or lower
Rated input 24VDC (10mA)
On voltage 19VDC or higher
Preset
Off voltage 6V or lower
input
On delay time Less than 1.5ms
Off delay time Less than 2ms
RUN
STOP
K3P-07CS
No. of
ROM MODE Input signal
TEST MODE terminal
1 A phase input
2 B phase input
3 COM
4 Preset input
5 Preset COM
16-2
Chapter 16 Built-in high speed counter of K200S MASTER-K
No. of
Internal circuit Signal type Operation voltage
terminal
3.3KΩ A-phase ON 14 ~ 26.4 VDC
1 pulse input Less than
24VDC OFF
2.5VDC
3 COM
3.3KΩ ON 19 ~ 26.4 V
Preset input
4
24V
Preset OFF 6 V or less
270Ω
input
Preset
5
COM
16-3
Chapter 16 Built-in high speed counter of K200S MASTER-K
16.4 Wiring
1) Be sure to use shielded twisted pair cables. Also provide Class 3 grounding.
2) Do not run a twisted pair cable in parallel with power cables or other I/O lines which may
generate noise.
3) Before applying a power source for pulse generator, be sure to use a noise-protected
power supply.
4) For 1-phase input, connect the count input signal only to the phase A input; for 2-phase
input, connect to phases A and B.
24V
Pulse Generator
CHSC
COM
24VG
CHSC
Pulse Generator COM
24VG
16-4
Chapter 16 Built-in high speed counter of K200S MASTER-K
16.5.1 Introduction
When use the built-in high speed counter of K200S, the HSC instruction should be used.
The instruction format of HSC is as following;
HSC
EN
U/D PV ( )
PR SC ( )
When the value of operation mode (D4999), PV or SV is not proper, the instruction error
flag (F110) turns on and the HSC instruction is not executed.
16-5
Chapter 16 Built-in high speed counter of K200S MASTER-K
Remark
The U/D and PR input of sequence program must be programmed with dummy input even
they are set as external input. When the PR and/or U/D is set as external input, the input
conditions of sequence program is ignored.
16-6
Chapter 16 Built-in high speed counter of K200S MASTER-K
HSC
M000
EN
M001
U/D PV D0000
M002 PR SC D0010
4) Time chart
16-7
Chapter 16 Built-in high speed counter of K200S MASTER-K
HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000
4) Time chart
PR input (M002)
16-8
Chapter 16 Built-in high speed counter of K200S MASTER-K
F012
MOV h2011 D4999
HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000
5) Time chart
16-9
Chapter 16 Built-in high speed counter of K200S MASTER-K
F012
MOV h2012 D4999
HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000
5) Time chart
16-10
Chapter 16 Built-in high speed counter of K200S MASTER-K
F012
MOV h2014 D4999
HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000
5) Time chart
16-11
Appendix
A. Flag list
A.1.1 F relay
Relay Function Description
F0000 RUN mode Turns on when the CPU in the RUN mode.
F0001 Program mode Turns on when the CPU in the Program mode
F0002 Pause mode Turns on when the CPU in the Pause mode
F0003 Debug mode Turns on when the CPU in the Debug mode
F0006 Remote mode Turns on when the CPU in the Remote mode
F0007 User memory Turns on when a user memory is installed.
installation
F0008 and F0009 Unused
F000A User memory Turns on when a user memory is being operated
operation
F000B to F000E Unused
F000F Execution of the Turns on when the STOP instruction is being operated.
STOP instruction
F0010 Always On Always On
F0011 Always Off Always Off
F0012 1 Scan On 1 Scan On
F0013 1 Scan Off 1 Scan Off
F0014 Scan toggle Scan toggle
F0015 to F001F Unused
F0020 1 step run Turns on when the 1 step run is operated in the Debug mode.
F0021 Breakpoint run Turns on when the breakpoint run is operated in the Debug
mode.
F0022 Scan run Turns on when the scan run is operated in the Debug mode.
F0023 Coincident Turns on when the coincident junction run is operated in the
junction value run Debug mode.
F0024 Coincident word Turns on when the coincident word run is operated in the Debug
value run mode.
F0025 to F002F Unused
F0030 Fatal error Turns on when a fatal error has occurred.
F0031 Ordinary error Turns on when an ordinary error has occurred.
F0032 WDT Error Turns on when a watch dog timer error has occurred.
F0033 I/O combination Turns on when an I/O error has occurred.
error (When one or more bit(s) of F0040 to F005F turns on)
F0034 Battery voltage Turns on when the battery voltage has fallen below the defined
error value.
F0035 Fuse error Turns on when a fuse of output modules has been disconnected.
F0036 to F0038 Unused
F0039 Normal backup Turns on when the data backup is normal.
operation
A-1
Appendix MASTER-K
(Continued)
Relay Function Description
F003A RTC data error Turns on when the RTC data setting error has occurred.
F003B During program Turns on during program edit while running the program.
edit
Turns on when a program edit error has occurred while running
F003C Program edit error
the program.
F003D to F003F Unused
When the reserved I/O module (set by the parameter) differs
F0040 to F005F I/O error from the real loaded I/O module or a I/O module has been
mounted or dismounted, the corresponding bit turns on.
F0060 to F006F Storing error code Stores the system error code, (See Section 2.9)
Storing the
When a fuse has disconnected in an output module, the
F0070 to F008F disconnection
corresponding bit to the slot turns on.
state of fuses
F0090 20-ms cycle clock
100-ms cycle Turning On/Off is repeated with a constant cycle.
F0091
clock
200-ms cycle
F0092
clock
F0093 1-sec cycle clock On Off
F0094 2-sec cycle clock
F0095 10-sec cycle clock
F0096 20-sec cycle clock
F0097 60-sec cycle clock
F0098 to F009F Unused
F0100 User clock 0 Turning On/Off is repeated as many times as the scan specified
F0101 User clock 1 by Duty instruction.
A-2
Appendix MASTER-K
(Continued)
Relay Function Description
F0120 LT flag Turns on if S1 < S2 when using the CMP instruction.
F0121 LTE flag Turns on if S1 ≤ S2 when using the CMP instruction.
F0122 EQU flag Turns on if S1 = S2 when using the CMP instruction.
F0123 GT flag Turns on if S1 > S2 when using the CMP instruction.
F0124 GTE flag Turns on if S1 ≥ S2 when using the CMP instruction.
F0125 NEQ flag Turns on if S1 ≠ S2 when using the CMP instruction.
F0126 to F012F Unused
F0130 to F013F AC Down Count Stores AC down counting value.
F0140 to F014F FALS No. The error code generated by FALS instruction is stored to this
flag.
F0150 to F015F PUT/GET error When a common RAM access error of special modules has
flag occurred an output module, the corresponding bit to the slot
turns on.
F0160 to F049F Unused
F0500 to F050F Maximum scan Stores the maximum scan time.
time
F0510 to F051F Minimum scan Stores the minimum scan time.
time
F0520 to F052F Present scan time Stores the present scan time.
F0530 to F053F Clock data Clock data
(year/month) (year/month)
F0540 to F054F Clock data Clock data
(day/hour) (day/hour)
F0550 to F055F Clock data Clock data
(minute/second) (minute/second)
F0560 to F056F Clock data Clock data
(day of the week) (day of the week)
F0570 to F058F Unused
F0590 to F059F Storing error step Stores the error step of the program.
F0600 to F060F Storing FMM step If a FMM related error has occurred, its occurrence information is
stored.
F0610 to F063F Unused
A.1.2 M relay
Relay Function Description
Write user RTC data to RTC area. Refer the chapter 4.5.1 for
M1904 RTC set enable
details.
Enable the forced I/O function when the bit turns on. Refer the
M1910 Forced I/O enable
chapter 4.5.2 for details.
A-3
Appendix MASTER-K
x : K200S/K300S = 4, K1000S = 9
A-4
Appendix MASTER-K
(Continued)
Remark
1) When the communication module is mounted on other slot than slot 0, please calculate the
device number of flag with the following table.
2) If the _FSMn_st_no is set as hFF, the setting of _FSMn_reset, _FSMn_IO_reset, and
_FSMn_hs_reset is applied to all remote stations that are linked with the communication
module on the slot n.
3) In the _CnVERNO flag, the version numbers of communication mounted on the slot 0 to 7
are stored in order. (slot 0:Dx680, slot 1:Dx681, …. , slot 7:Dx687)
A-5
Appendix MASTER-K
A-6
Appendix MASTER-K
Remark
The ‘k’ indicates the number of block. The status of 16 block is stored in a word. Therefore,
total 4 words are used for storing the status of 64 blocks (k: 0 ~ 63). For example, the status
of mode status of block 55 is stored in the Dx608.7 bit.
A-7
Appendix MASTER-K
The L area is used when the computer link module (Cnet) or data link module (Fnet) is mounted
on the system. See the user’s manual of Cnet or Fnet for detail information.
Remark
If the Cnet module is mounted on other slot than slot 0, please refer the following formula to
calculate the device number of L area.
A-8
Appendix MASTER-K
Remark
When the Fnet module is mounted on slot 1 ~ 7, the device number of link relay can get by
adding 80 × slot number to the device number when the slot number is 0.
A-9
Appendix MASTER-K
A.4 Dimension
Unit : mm
A.4.1 CPU modules
K7P-30AS K4P-15AS
RUN STOP
RUN
PAU/REM
STOP
RUN STOP
REMOTE
RUN
K3P-07AS
110
38 35
90
A-10
Appendix MASTER-K
K7X-310S K4Y-303S
110
38 35
90
A-11
Appendix MASTER-K
A.1.2 K
A.1.1 K
MK200S
POWER
K3S - 302S
110
38 45
90
A-12
Appendix MASTER-K
Model A B C
Model A B C K4B-8MS 284 115 17
K7B-8MS 284 230 17 K4B-6MS 354 115 17
K7B-6MS 354 230 17 K4B-4MS 424 115 17
K7B-4MS 424 230 17 K4B-12MS 524 115 17
K7B-8ES 284 230 17 K4B-8ES 284 115 17
Expansi
—
C
B
E
A-13