0% found this document useful (0 votes)
979 views

Master-K: User User User User''''s Manual S Manual S Manual S Manual

This document is a user manual that provides an introduction and overview of the LG Programmable Logic Controller K200S/K300S/K1000S series. It describes the contents and structure of the user manual, the key features of the PLC systems including processing speed and programming options, and defines common terminology used in the manual such as module, unit, and input/output signal types.

Uploaded by

wilfredo falcon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
979 views

Master-K: User User User User''''s Manual S Manual S Manual S Manual

This document is a user manual that provides an introduction and overview of the LG Programmable Logic Controller K200S/K300S/K1000S series. It describes the contents and structure of the user manual, the key features of the PLC systems including processing speed and programming options, and defines common terminology used in the manual such as module, unit, and input/output signal types.

Uploaded by

wilfredo falcon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 230

User’

User’s Manual

LG Programmable Logic Controller

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.

Chapter Item Description


Describes configuration of this manual, modules
1 Instruction
features and terminology.
Describes available modules and system
2 System configuration configurations in the MASTER-K200S/300S/1000S
series.
Describes general specifications of various modules
3 Specifications
used in the MASTER-K200S/300S/1000S series.
Describes the performance, specifications and
4 CPU module
functions of the CPU module.
5 Battery
6 Memory module
Describes the specifications and handling instructions
7 Digital I/O module
for other modules except for the CPU module.
8 Power supply module
9 Base and cable
Describes installation, wiring and handling instructions
10 Installation and wiring
for reliability of the PLC system.
Describes the check point and method for
11 Maintenance
maintenance of the PLC system.
Describes various operation errors and corrective
12 Troubleshooting
actions.
RS232C communication Describes the RS-232C communication function of
13
for K200S K200S A and C type
RS422 communication Describes the RS422 communication functions of
14
for K200S K200S B type
Describes the PID control function of K200S B and C
15 PID function of K200S
type
High speed counter of
16 Describes the HSC function of K200S C type
K200S
Appendix 1 Flag list Describes types and contents of various flags
Shows dimensions of CPU, I/O modules and base
Appendix 2 Dimension
unit

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

The features of MASTER-K 200S/300S/1000S series are as following;


1) Program compatibility with previous MASTER-K series
2) Support various and easy-to-use programming devices
 KGL-WIN : Graphic loader for Windows 95 / 98
 KLD-150S : Hand-held loader
3) Open network by supporting communication protocol complying with international
standard.
4) Fast processing speed (operation dedicated processor is mounted)
 K200S : 0.5 µsec / step
 K300S / K1000S : 0.2 µsec / step
5) Various special modules that enlarge the application range of PLC
6) Enhanced self-diagnosis functions
The MASTER-K 200S/300S/1000S series provides more detail error codes that make the
cause of error can be found more easily.
7) Debug function
On-line debugging is available by changing the operation mode as RUN ! Debug. The
MASTER-K 200S/300S/1000S series provides following debugging functions;
 Execution by one instruction
 Execution by break point setting
 Execution by the device status
 Execution by specified scan times
8) Various program types
The MASTER-K 200S/300S/1000S series supports various program types such as time-
driven interrupt (TDI), process-driven interrupt (PDI), and subroutine program.


Chapter 1 Instruction MASTER-K

1.3 Terminology

The following table shows the definition of terms used in this manual.

Terms Definition Remark


Example)
A standard element that has a specified function which
Module configures a system. Devices such as CPU or I/O, which CPU module,
mounted on the base board or base unit. Power module,
I/O module, etc.
Example)
A single module or group of modules that performs an
Unit main unit,
independent operation as a part of PLC system.
expansion unit
A system that consists of PLC and peripheral devices that
PLC system
are controlled by user program.
A computer software for Windows 95 / 98 used for write,
KGL-WIN editing, and debugging of user program of MASTER-K
series.
A hand-held loader used for write, editing, and debugging
KLD-150S
of user program of MASTER- K series
Internal memory area of CPU module that holds the I/O
I/O image area
status during PLC operation.
Abbreviation of the ‘Factory Automation Monitoring S/W’. It
FAM
is used to call software for process supervision.
Fnet Fieldbus network
Cnet Computer network (RS-232C, RS-422/485)
Abbreviation of ‘Real Time Clock’. It is used to call general
RTC
ICs that contains clock function.
An internal timer used for supervising program execution
Watchdog timer time. It gives a warning when the execution time exceeds
the preset time.


Chapter 1 Instruction MASTER-K

Terms Definition Remark


Current flows in from the input switch to the input terminal of
PLC when an input signal is turned on.
PLC
Switch Input
terminal
Z: Input
Sink input +
Current impedance
Power Z

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

Current flows in from the external load to the output terminal of


PLC when an output signal is turned on.
PLC
Output
terminal
Z
Sink output Output
relay +
Power
Current –

Common

Current flows out from the output terminal of PLC to the


external load when an output signal is turned on.
PLC
Output
terminal
Z
Source output Output
relay –
Power
Current +

Common


Chapter 2 System configuration

2 System configuration ..........................................................................................2-1


2.1 Overall configuration ................................................................................................2-1
2.1.1 K200S series ..........................................................................................................2-1
2.1.2 K300S / 1000S series.............................................................................................2-2
2.2 Product list.................................................................................................................2-3
2.2.1 K200S.....................................................................................................................2-3
2.2.2 K300S.....................................................................................................................2-5
2.2.3 K1000S...................................................................................................................2-8
2.3 System configuration types ................................................................................... 2-11
2.3.1 Basic system configuration .................................................................................. 2-11
2.3.2 Computer link system...........................................................................................2-12
2.3.3 Network system....................................................................................................2-12
Chapter 2 System configuration MASTER-K

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.

2.1 Overall configuration

2.1.1 K200S series


The overall system configuration of K200S series is as following;

K3P-07AS

RUN
PAU/RE
M
KGL-WIN

Battery

CPU Module RS-232C IBM


KGL-WIN S/W
Cable compatible PC

POWER O
K3S-301S

Power Supply Base board(K3B - S)


Module
(K3S-S)

K6F-AD2A K3FL-FUEA
K3X-210S K3Y-201S

Input Module Output Module Special Module Communication


(K3X-S) (K3Y-S) (K3F-) Module
(K3F-)


Chapter 2 System configuration MASTER-K

2.1.2 K300S / 1000S series


The overall system configuration of K300S/1000S series is as following;


Chapter 2 System configuration MASTER-K

2.2 Product list


The product list of K200S/300S/1000S are as following;

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

D/A -10 ~ 10VDC


conversion
modules Current output, 4 channels
K3F-DI2A
DC 4 ~ 20mA
High
speed Counting range ( 0 ~ 16,777,215 : binary 24 bits)
K3F-HSCA
counter 50kHz, 1 channel
module
Positioning
K3F-POPA Pulse output, 2 axes control
module
Fnet I/F module
K3F-FUEA
1Mbps base band, Twisted pair cable
Network modules

Fnet
modules Fnet remote I/F module
K3F-RBEA
1Mbps base band, Twisted pair cable

Cnet K3F-CU2A Cnet I/F module (RS-232C)


modules K3F-CU4A Cnet I/F module (RS-422/485)
Dust-cover K3F-DMMA Dust-protector for unused slot


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

Main base K4B-6MS 6 module


boards K4B-8MS 8 module
K4B-12MS 12 modules No expansion
K4B-4ES 4 modules
Expansion
base K4B-6ES 6 modules
boards
K4B-8ES 8 modules
G4C-E041 Length : 0.4m
Expansion
G4C-E121 Length : 1.2m
cables
G4C-E301 Length : 3.0m
Memory
K4M-32S Flash memory, 32k steps
module
K4S-122S 110VAC
5VDC : 5A, 24VDC : 0.7A
K4S-132S 220VAC
Power
supply K4S-125S 110VAC
modules 5VDC : 3A, 24VDC : 0.5A,
K4S-135S 220VAC
K4S-010S 24VDC 5VDC : 4A, 24VDC : bypass


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

Current output, 8 channels


K4F-DA3I
DC 4 ~ 20mA
High Counting range ( 0 ~ 16,777,215 : binary 24
speed bits)
K4F-HSCA
counter
module 50kHz, 1 channel

Positioning K4F-POPA Pulse output, 1 axis control


module K4F-POPB Pulse output, 2 axes control
Thermoco Sensor type : 7 types (K, J, E, T, B, R, S)
uple input K4F-TC2A
module 4 channels

RTD Sensor type : Pt100, JPt100


K4F-RD2A
module 4 channels
PID control
K4F-PIDA Max. 8 loops control
module

Analog 8 analog timers Each channel


timer K4F-AT3A Setting range : 0.1 ~ 1.0sec / 1 ~ 10sec can be set
module 10 ~ 60sec / 60 ~ 600sec independently

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

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

Active G0L-FABA Base board for active coupler


coupler G0L-FACA Active coupler
G0L-FADA Dummy card for active coupler
Cnet
K4F-CUEA Cnet I/F module (RS-232C)
modules
Pseudo
Others

input G4S-SW16 Pseudo input switch, 16 points


switch
Dust cover K4F-DMMA Dust protector for unused slot


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



Chapter 2 System configuration MASTER-K

(continued)
Items Model No. Description Remark
Voltage / Current input, 16 channels
K7F-AD4A -5 ~ 5VDC / -10 ~ 10VDC
DC -20 ~ 20mA

A/D Voltage / Current input, 16 channels


conversion K7F-AD4B 1 ~ 5VDC / 0 ~ 10VDC
modules DC 4 ~ 20mA
Voltage / Current input, 8 channels
K7F-AD3A 1 ~ 5VDC / 0 ~ 10VDC
DC 4 ~ 20mA
Voltage output, 16 channels
K7F-DV4A
-5 ~ 5VDC / -10 ~ 10VDC
Current output, 16 channels
D/A K7F-DI4A
DC 4 ~ 20mA
conversion
modules Voltage output, 8 channels
K7F-DV3A
0 ~ 10VDC
Current output, 8 channels
K7F-DI3A
DC 4 ~ 20mA
Power K7S-123S 110VAC +15VDC : 0.5A For A/D & D/A
supply
K7S-133S 220VAC -15VDC : 0.1A modules
module
High Counting range ( 0 ~ 16,777,215 : binary 24
speed bits)
K7F-HSCA
counter
module 50kHz, 2 channels

Positioning K7F-POPA Pulse output, 1 axis control


module K7F-POAA Analog output, 2 axes control
Thermoco Sensor type : 7 types (K, J, E, T, B, R, S)
uple input K7F-TC4A
module 16 channels

RTD Sensor type : Pt100, JPt100


K7F-RD3A
module 8 channels
PID control
K7F-PIDA Max. 32 loops control
module

Analog 16 analog timers Each channel


timer K7F-AT4A Setting range : 0.1 ~ 1.0sec / 1 ~ 10sec can be set
module 10 ~ 60sec / 60 ~ 600sec independently

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

Active G0L-FABA Base board for active coupler


coupler G0L-FACA Active coupler
G0L-FADA Dummy card for active coupler
Cnet
K7F-CUEA Cnet I/F module (RS-232C:1ch / RS422:1ch)
modules
Pseudo
Others

input G3S-SW32 Pseudo input switch, 32 points


switch
Dust cover K7F-DMMA Dust protector for unused slot


Chapter 2 System configuration MASTER-K

2.3 System configuration types


System configuration is classified into 3 types such as basic, computer link, and network system.

2.3.1 Basic system configuration


The basic system consists of a main base and expansion base(s). The main and expansion
base(s) are connected via expansion cable.

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

K200S K300S K1000S

Max. expansion level – 3 levels


Max. distance between bases – 3m
Max. numbers of I/O module 8 modules 32 modules
Max. I/O points 512 points 512 points 1,024 points
CPU K3P-07AS K4P-15AS K7P-30AS
K7S-122S / 132S
K3S-302S / 304S K4S-122S / 132S
Power supply K7S-120S / 130S
K3S-102S / 104S K4S-125S / 135S
K7S-124S / 134S

Module Main base K3B-4/6/8MS K4B-4/6/8/12BS K7B-4/6/8MS


type Expansion base – K4B-4/6/8ES K7B-4/6/8ES
Expansion cable – G4C-E041/121/301 G3C-E061/121/301

I/O module K3X- K4X- K7X-

Special-function K3Y- K4Y- K7Y-


module K3F- K4F- K7F-
I/O number (P00, P01, …) is allocated for each module
automatically. A empty slot occupies 16 bits.
I/O number allocation
Special-function modules can be mounted on all bases and
slots with no limit on the number of modules.


Chapter 2 System configuration MASTER-K

2.3.2 Computer link system


When a CPU module is connected with external devices (such as computer or printer, etc.)
via RS-232C or RS-422/485 protocol by using computer link module, it is called as computer
link system. For details about computer link system, please refer user’s manual of MK
computer link modules.

Remark
The maximum number of Cnet modules that can be mounted simultaneously is as following;

K200S : 2 modules K300S : 4 modules K1000S : 8 modules

Cnet modules can be mounted only main base board. (Not available for expansion base board)

2.3.3 Network system


In network system, user can access and control I/O module of remote station through a
network I/F and remote I/F module. MASTER-K series uses the Fnet system to consist a
network system. Please refer the user’s manual of Fnet network module for details.

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.

PID control module K4F-PIDA K7F-PIDA


Positioning module K4F-POPA K7F-POPA
K4F-POPB K7F-POAA
Analog timer module K4F-AT3A K7F-AT4A
Fnet I/F module K4F-FUEA K7F-FUEA
Cnet I/F module K4F-CUEA K7F-CUEA

Example) K300S Network system


The above modules can not
Fnet remote be mounted on these slots
Fnet I/F module
I/F module
K4F-RBEA
K4F-FUEA
K4P-15AS
K3S-122S

K3S-122S

Main base


Chapter 3 General specifications

3 General specifications .............................................................................. 3-1


Chapter 3 General specifications MASTER-K

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

Maximum shock acceleration: 147 (15G)


6 Shock resistance Duration time :11 ms (3 times in each of X, Y and Z directions) IEC 1131-2
Pulse wave: half sine wave pulse
Square wave LGIS ’ s
1,500 V
impulse noise specification
Electrostatic IEC 1131-2
Voltage :4 kV(contact discharge)
discharge IEC 801-2
Radiated electro- IEC 1131-2
7 Noise immunity 27 ~ 500 MHz, 10 V/m
magnetic field IEC 801-2
Digital I/O (Ue<24 V)
Severity All power Digital I/O
Fast transient Analog I/O IEC 1131-2
Level modules ( Ue ≥ 24 V)
burst noise Communication I/O IEC 801-4
Voltage 2 kV 1 kV 0.25 kV
8 Atmosphere Free of corrosive gases
9 Altitude for use Up to 2,000m ( 6,560ft )
10 Pollution degree 2
11 Cooling method Self-cooling

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


4.1 Performance specifications .....................................................................................4-1
4.2 Operation processing of CPU ..................................................................................4-2
4.2.1 Operation method...................................................................................................4-2
4.2.2 The operation during momentary power failure .....................................................4-3
4.2.3 Scan time ...............................................................................................................4-4
4.2.4 Watchdog timer ......................................................................................................4-4
4.2.5 Timers.....................................................................................................................4-5
4.2.6 Counter...................................................................................................................4-8
4.3 Program structure ...................................................................................................4-10
4.3.1 Classification of program......................................................................................4-10
4.3.2 Processing method...............................................................................................4-10
4.3.3 Interrupt processing.............................................................................................. 4-11
4.3.4 Error handling.......................................................................................................4-15
4.4 Operation mode.......................................................................................................4-16
4.4.1 RUN mode............................................................................................................4-16
4.4.2 Stop mode ............................................................................................................4-17
4.4.3 PAUSE mode .......................................................................................................4-18
4.4.4 DEBUG mode.......................................................................................................4-19
4.4.5 Operation mode change.......................................................................................4-20
4.5 Special functions of CPU module..........................................................................4-22
4.5.1 RTC (Real Time Clock) function...........................................................................4-22
4.5.2 Forced I/O setting.................................................................................................4-25
4.5.3 Program edit in RUN mode ..................................................................................4-26
4.5.4 Self-diagnosis.......................................................................................................4-27
4.5.5 Direct I/O refresh ..................................................................................................4-28
4.5.6 System error history .............................................................................................4-28
4.6 Memory configuration.............................................................................................4-29
4.6.1 Memory map of K200S / K300S...........................................................................4-29
4.6.2 The memory map of K1000S ...............................................................................4-30
4.7 Assign I/O address..................................................................................................4-31
4.8 Parts names .............................................................................................................4-32
Chapter 4 CPU modules MASTER-K

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

Memory F F000 ~ F63F (1,024 points) Special relay


device 100msec : T000 ~ T191 (192 points)
T Timer
10msec : T192 ~ T255 (64 points)
C C000 ~ C255 (256 points) Counter
S S00.00 ~ S99.99 (100×100 steps) Step controller
D0000 ~ D9999
D D0000 ~ D4999 (5,000 words) Data register
(10,000 words)
Operation modes RUN, STOP, PAUSE, DEBUG
Detect errors of scan time, memory, I/O, battery,
Self-diagnosis functions
and power supply
Data back-up method Battery-back-up
Max. expansion level None Up to 3 level
Current consumption 150mA 130mA 130mA
Weight 0.11kg 0.25kg 0.42kg

4-1
Chapter 4 CPU modules MASTER-K

4.2 Operation processing of CPU

4.2.1 Operation method


1) The repetitive operation
The repetitive operation method repeats execution of a series of operations. The CPU
repeats the operation processing as following;

Step Description

Start of operation

The preparation step to execute scan operation


Executed only 1 time when power is turned on or
CPU is reset.
The following operation is executed;
Initializing operation
- I/O module reset
- Self-diagnosis operation
- Clear non-retentive data
- Read I/O information and assign address

Before start of scan operation, read the status of


Refresh input image data input module and store it to the input image data
area.

Program execution
0 step
Execute the user program from step 0 to the last
step

Last step

After the last step is executed, output the operation


Refresh output image data result of output image data area to the output
module

Before restart scan operation, the following


operation is executed;
Execute END operation - Self-diagnosis operation
- Update the current value of timer and counter
- Execute data transmission with network module
- Check the operation mode is changed or not

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.

4.2.2 The operation during momentary power failure


The MASTER-K 200S/300S/1000S series can detect a momentary power failure, and the
CPU module decides to continue operation or not according to the period of momentary
power failure.

1) Less than 20msec


 The CPU stop to execute sequence program
retaining the state of output.
 The time measurement for internal timer and
time-driven interrupt keeps normal operation
status while the sequence program is
stopped.
 When the AC power is recovered, the CPU
restarts to execute sequence program.
Less than 20msec  The external output of power supply module
is kept as the rated voltage and current.
2) Over 20msec

The CPU will initialized and restart operation


as the power re-applied.

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.2.3 Scan time


The series of steps from step 0 to the next step 0 or from an END instruction to the next
END instruction is called a scan. The scan time is total time spent to execute a scan.

1) The calculation of scan time


The scan time is calculated as a total of the processing time of sequence program (step 0
to the END), interrupt routine, and internal processing of CPU.
Scan time = Sequence program processing time + Interrupt routine processing time
+ Internal processing time
Sequence program processing time :
The total processing time to execute step 0 to END instruction
Interrupt processing time :
The total processing time to execute interrupt routine during a scan
Internal processing time :
The total processing time to execute self-diagnosis, I/O refresh, timer/counter update,
and communication operation
2) The scan time varies with executing interrupt routine and communication operation or not.
3) The scan time of CPU module is stored in the following special relays (F area).
 F50 word : The maximum scan time (unit : msec)
 F51 word : The minimum scan time (unit : msec)
 F52 word : The current scan time (unit : msec)

4.2.4 Watchdog timer


1) The watchdog timer is an internal timer of the CPU to detect the error of hardware and
sequence program. The default value of watchdog timer is 200msec, and it can be
changed in parameter setting. (setting range : 10 ~ 6000msec, unit : 10msec)
2) When a scan is not completed before, the watchdog timer error occurs and the operation
of CPU is stopped. At this time, all outputs of I/O module are turned off.
3) The watchdog timer is reset before step 0 is executed (after the END processing is
finished) or the WDT instruction is executed. When write a sequence program contains
FOR ~ NEXT loop or a lot of subroutines, increase watchdog timer setting value or put
WDT instruction to avoid watchdog timer error. The setting range of watchdog timer is 10
~ 6000msec
4) When a watchdog timer error occurs, it can be cleared by power cycle, manual reset
switch (K1000S), or mode change.

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.

Timer input condition


t1 t2 t3

Timer output relay


t1 + PT t3 + PT
PT PT

Preset value (PV)

Current value

2) Off delay timer


The current value of timer set as preset value and the timer output relay is turned on
when the input condition of TOFF instruction turns on. When the input condition is turned
off, the current value starts to decrease. The timer output relay is turned off when the
current value reaches 0.

Timer input condition


t1 t2 t3

Timer output relay t1 + PT t3 + PT

PT PT

Preset value (PV)

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.

Timer input condition

Timer output relay

Timer reset input

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).

Timer input condition

Timer output relay PT

Preset value (PV)


(ignored)

(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.

Timer input condition

Timer output relay PT

Preset value (PV)

Current value (On operation)

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

2) Down counter (CTD)


When the CPU is switched to the RUN mode, the current value is set as preset value.1
The current value is decreased by 1 with the rising edge of counter input signal. The
counter output relay is turned on when the current value reaches 0.

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

4.3 Program structure

4.3.1 Classification of program


All functional elements need to execute a certain control process are called as a
‘program’. In MASTER-K series, a program is stored in the RAM mounted on a CPU
module or flash memory of a external memory module. The following table shows the
classification of the program.

Program type Description


The scan program is executed regularly in every scan. If the scan
Scan program program is not stored, the CPU cannot execute not only the scan
program but also other programs.
Time-driven interrupt The TDI programs are executed with a constant time interval
program (TDI) specified with parameter setting.
The PDI programs are executed only external interrupt input is
Process driven interrupt
applied and the corresponding interrupt routine is enabled by EI
program (PDI)
instruction.
The subroutine programs are executed when they are called by the
Subroutine program
scan program with a CALL instruction.

4.3.2 Processing method


The following diagram shows that how the CPU module process programs when the CPU
module is powered on or switched to RUN mode.

Start operation

Subroutine program

PDI program

Scan program
TDI program

END processing

4-10
Chapter 4 CPU modules MASTER-K

4.3.3 Interrupt processing


When an interrupt occurs, the CPU module will stop the current operation and execute
the corresponding interrupt routine. After finish the interrupt routine, the CPU resume the
sequence program from the stopped step.
MASTER-K series provides 2 types of interrupt. The TDI (Time driven interrupt) occurs
with the constant period, and PDI (Process driven interrupt) occurs with the status of
external input.

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.

To execute an interrupt routine, use the EI instruction to enable the corresponding


interrupt. The interrupt routine is not executed if an interrupt factor occurs before
execution of an EI instruction. Once an interrupt is enabled with EI instruction, it keeps
the enabled status until DI instruction is executed to disable the interrupt. When a CPU is
turned to RUN mode, all interrupts are disabled by default.

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

7 3 Stop main program and execute interrupt


routine 2

Interrupt routine 1 5 4 Interrupt 1 occurs (higher priority)

5 Stop routine 2 and run routine 1


3
Interrupt routine 2 4
6 6 Finish routine 1 and return to routine2

7 Finish routine 2 and return to main

4-11
Chapter 4 CPU modules MASTER-K

1) Parameter setting

K200S K300S K1000S

Priority Type Period Priority Type Period Priority Type Period


0 TDI0 10msec 0 TDI0 10msec 0 TDI0 10msec
1 TDI2 25msec 1 TDI2 25msec 1 TDI2 25msec
2 TDI5 100msec 2 TDI5 100msec 2 TDI5 100msec
: : : :
: : : :
7 INT7 : :
13 INT7 :
29 INT15

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

2) TDI (Time driven interrupt)


TDI occurs periodically with the constant interval assigned in parameter setting. The
interrupt routine of TDI starts with the TDINT instruction and ends with the IRET
instruction.
When multiple interrupt factors occur simultaneously, interrupt routines are executed
according to the priority given to the each interrupt. If an interrupt factor has higher priority
occurs while other interrupt of lower priority is executing, the interrupt routine of lower
priority will be stopped and the interrupt of higher priority will be executed first. Otherwise,
two interrupts are executed consequently.
The maximum numbers of TDI for K200S / 300S / 1000S are shown as following table.

PLC type Available TDI


K200S TDINT 0 ~ 7
K300S TDINT 0 ~ 13
K1000S TDINT 0 ~ 29

The following figure shows an example of TDI execution.

Used TDI Interrupt routines


TDI 0 : occurs every 200msec A : The routine corresponding to TDI 0
TDI 1 : occurs every 100msec B : The routine corresponding to TDI 1
TDI 2 : occurs every 400msec C : The routine corresponding to TDI 2

400msec

200msec 200msec

100msec 100msec 100msec 100msec

A B C B A B B A B C

4-13
Chapter 4 CPU modules MASTER-K

3) PDI (Process driven interrupt)


PDI occurs when the input status of interrupt module is changed from OFF to ON or from
ON to OFF. (Select by DIP switch setting) Since K200S does not have interrupt module,
PDI will occur when the input assigned as interrupt input by parameter setting is changed
from OFF to ON.
The execution order of multiple interrupts is similar as TDI. The following figure shows an
example of execution order of multiple PDI.

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

3 Stop main program and run PDI routine 2

4 Interrupt 0 occurs (higher priority)

5 Stop routine 2 and execute routine 0

6 Interrupt 1 occurs (lower priority)

7 Finish routine 0 and execute routine 1

8 Finish routine 1 and resume routine 2

9 Finish routine 2 and back to main program

4-14
Chapter 4 CPU modules MASTER-K

4.3.4 Error handling

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.

The causes of system error are as following;


 The hardware error
 System configuration error
 Operation error during execution of user program
 External device malfunction

2) Operation mode at error occurrence


In case of error occurrence, the CPU stores corresponding error code at error flags, and
stop / continue operation according to the error type.
 The hardware error
The system is changed to STOP mode when a fatal error such as CPU defection
occurs. When an ordinary error such as battery error occurs, the system keep its
operation status.
 System configuration error
This error occurs when actual hardware configuration conflicts with the configuration
assigned in parameter setting. The system is changed to the STOP mode.
 Operation error during execution of user program
When a arithmetic operation error occurs, the system output error code at the
corresponding error flag and continue operating. If a scan time exceeds the watchdog
timer setting value or mounted I/O module is not normally controlled, the system is
switched to the STOP mode.
 External device malfunction
The CPU can detect an external device malfunction with user program. If a fatal error
detected, the system is stopped. Otherwise, it continues operating.

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

4.4 Operation mode


The operation mode of CPU module can be classified into 4 modes such as RUN, STOP,
PAUSE, and DEBUG modes.

4.4.1 RUN mode


In the RUN mode, the CPU process user programs normally.

Start RUN mode

Clear the non-latched memory area

Check user program

Execution of user program

Self-diagnosis

I/O refresh

Execute communication service,


Update timer / counter

No
Mode changed?

Yes

Start other mode

4-16
Chapter 4 CPU modules MASTER-K

4.4.2 Stop mode


In the STOP mode, the CPU does not execute program. Program change through KGL-
WIN is possible in the remote STOP mode only.
External wiring check is also possible with the forced I/O on/off function.

Start STOP mode

Turn all outputs off

Self-diagnosis

I/O refresh

Execute communication service,


Update timer / counter

No
Mode changed?

Yes

Start other mode

4-17
Chapter 4 CPU modules MASTER-K

4.4.3 PAUSE mode


In PAUSE mode, the CPU stops executing user program, but keeps the status of output
and internal memory.
When the mode is changed to RUN mode, the CPU restart executing user program from
the step at which the user program is stopped.

Start PAUSE mode

Self-diagnosis

I/O refresh

Execute communication service,


Update timer / counter

No
Mode changed?

Yes

Start other mode

4-18
Chapter 4 CPU modules MASTER-K

4.4.4 DEBUG mode


For debugging of user program, the MASTER-K 200S/300S/1000S provides the DEBUG
mode. In the DEBUG mode, the CPU executes user program according to the execution
condition as following;
 Step over : Executes just an operation unit (one instruction)
 Break point : Executes user program until the specified step (break point)
 Device state : Execute user program until a device (bit or word) assigned to be
monitored is changed to the specified status (read, write, value)
 Scan loop : Execute user program for specified number of scans

Start DEBUG mode

Clear the non-latched memory area

Stop operation

Execution of user program according


to the specified execution condition

Self-diagnosis

I/O refresh

Execute communication service,


Update timer / counter

No
Mode changed?

Yes

Start other mode

4-19
Chapter 4 CPU modules MASTER-K

Remark

It is forbidden to enter DEBUG mode from RUN or PAUSE mode.

Remark

In DEBUG mode, each interrupt program can be enabled / disabled separately.

4.4.5 Operation mode change

1) The operation mode of CPU can be change by following methods;


 The mode key switch on the CPU module
 KGL-WIN connected to the CPU through loader port
 KGL-WIN connected to the remote CPU through a fieldbus network
 User command through a FAM or computer link module
 The ‘STOP’ instruction of user program
2) Mode change by mode key switch
The following table shows how the operation mode is changed by mode key switch
Mode key switch Operation mode
RUN Local RUN
STOP Local STOP
PAU / REM Local PAUSE / Remote (RUN / STOP / PAUSE)
RUN ! PAU / REM Local RUN ! Local PAUSE
PAU / REM ! STOP Local PAUSE / Remote ! Local STOP
STOP ! PAU / REM Local STOP ! Remote STOP
PAU / REM ! RUN Local PAUSE / Remote ! Local RUN

Remark

The CPU operates continuously when the operation mode is changed as remote RUN ! local
RUN

4-20
Chapter 4 CPU modules MASTER-K

3) Remote mode change


To change operation mode with KGL-WIN or KLD-150S, the mode key switch should be
in the remote STOP mode. (Mode key setting : STOP ! PAU / REM)

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

4.5 Special functions of CPU module

4.5.1 RTC (Real Time Clock) function


MASTER-K 200S/300S/1000S series includes RTC function. (K200S-A does not have
RTC function) Clock operation by the RTC function is continued with a battery or super
capacitor when the CPU is powered off.

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

3) Read / write RTC data


 Read RTC data
The current RTC data
Description Data
Memory Area (Word)
Upper byte Lower byte (BCD format)
F053 Year Month h9812
F054 Day Hour h2219
F055 Minute Second h3746
F056 - Date hxx02
Example : 1998. 12. 22. 19:37:46, Tuesday
 Write RTC data
There is two ways to write new RTC data to the CPU.
The first one is using a handy loader (KLD-150S) or graphic loader (KGL-WIN). For
detailed information, refer the user’s manual of KLD-150S or KGL-WIN.
The second one is write sequence program. By switching a special bit on, user can
replace the current RTC data with the preset data stored in a specified memory area. The
followings are the memory address of preset data and an example program.

The preset RTC data


Memory Area (Word) Description Data
K200S / K300S K1000S Upper byte Lower byte (BCD format)

D4990 D9990 Year Month h9901


D4991 D9991 Day Hour h1711
D4992 D9992 Minute Second h5324
D4993 D9993 - Date hxx00
Example : 1999. 1. 17. 11:53:24, Sunday

4-23
Chapter 4 CPU modules MASTER-K

M1904 : RTC data change bit


When the M1904 bit is switched on, the new data in D4990 ~ D4993 (K1000S :
D9990 ~ D9993) will be moved to F53 ~ F56. After data is moved, M1904 has to be
switched off immediately because current data will be updated every scan while
M1904 is on.

<Example program for K200S / K300S>


P000
[ MOV h9901 D4990 ] :1999 January
Start switch
[ MOV h1711 D4991 ] :17th 11 o’clock
[ MOV h5324 D4992 ] :53min 24sec
[ MOV h0000 D4993 ] :Sunday
[ D M1904 ] :Changing enable

Other Program

4-24
Chapter 4 CPU modules MASTER-K

4.5.2 Forced I/O setting


It is possible to output a designated data regardless of the result of operation. This
function is useful to check operation of the output modules and wiring between the output
modules and external devices.

K200S K300S K1000S

Forced I/O request bit M1910


The forced I/O address D4700 ~ D9700 ~
The forced I/O data D4800 ~ D9800 ~

Example 1) Output h8721 to the P10 word by force (K200S / K300S)


a) Write the forced I/O data (h8721) to the corresponding data word. P10 is matched
to the D4810 word.

<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.

<D4710 word> ( 0 = disable forced I/O, 1 = enable forced I/O )


F E D C B A 9 8 7 6 5 4 3 2 1 0

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

c) Switch on the forced I/O request bit (M1910).

d) Output of P10 word


(P : The previous result of operation)

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

Example 2) Switch On/Off the last bit of P07 word (K1000S)


a) Write the forced I/O data (h0001) to the corresponding data word. P10 is matched
to the D9807 word.

<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.

<D9707 word> ( 0 = disable forced I/O, 1 = enable forced I/O )


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

c) Switch on the forced I/O request bit (M1910).

d) Output of P07 word


(P : The previous result of operation)

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

4.5.3 Program edit in RUN mode


User can insert, delete, or change instructions of program while the CPU is running.
This function is useful to debugging or test-operation. Please refer the user’s manual
of KLD-150S or KGL-WIN for detail information.

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

1) WDT (Watch dog timer) function


The watch dog timer is an internal timer of a PLC to detect the error of hardware and a
sequence program. The default value is set as 200msec, and it is changeable with
parameter setting. Refer the MASTER-K programming manual for details on the
parameter setting.
The CPU resets the watch dog timer before step 0 is executed (after the END
processing is finished). When the END instruction has not been executed within the
set value due to an error occurred in the PLC or the long scan time of a sequence
program, the watch dog timer will times out. When a watch dog timer error is occurred,
all outputs of the PLC are turned OFF, and the ERR LED of the CPU will flashes.
(RUN LED will be turned OFF) Therefore, when use FOR ~ NEXT or CALL instruction,
insert WDT instruction to reset the watch dog timer.

2) I/O module check function


If one or more I/O modules are mounted/dismounted while the PLC is powered, the
corresponding bit (F0040 ~ F0050 : 32 bits) will be switched on. If a module is
mounted improperly, the relevant bit will be switched on also.
P C
W P
R U

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

3) Battery check function


When the voltage of the battery for back-up the memory IC of CPU are lower than the
minimum back-up voltage, the BAT LED of CPU module will be turned on.

4-27
Chapter 4 CPU modules MASTER-K

4.5.5 Direct I/O refresh


To read or write the operation result immediately, MASTER-K 200S/300S/1000S provides
‘IORF’ instruction. When the IORF instruction is executed, the CPU refreshes I/O image
data area immediately. Please refer the MASTER-K instruction manual for details.

4.5.6 System error history


When the system is stopped by error occurrence, the CPU stores the error occurrence
time and error code to the special data register area. The most recent 16 error occurring
times and error codes are stored in the special data register.
1) Special data register
CPU type
Description
K200S K300S K1000S
D4901 ~ D4904 D9901 ~ D9904 The latest error information
D4905 ~ D4908 D9905 ~ D9908 The 2nd latest error information
Device
: : :
th
D4961 ~ D4964 D9961 ~ D9964 The 16 latest error information

2) Description of each word


Device
Contents Description
K200S K300S K1000S
D4901 D9901 h9905 Year : 99, Month : 5
D4902 D9902 h2812 Date : 28, Hour : 12
D4903 D9903 h3030 Minute : 30, Second : 30
D4904 D9904 h0001 Error code (h0001)

3) Clear error data


Use a ‘data clear’ function of KGL-WIN or KLD-150S

4-28
Chapter 4 CPU modules MASTER-K

4.6 Memory configuration

4.6.1 Memory map of K200S / K300S

Bit Data Area Word Data Area User Program Area

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

(32 points) (256 words)


“M” T255
M191
K00 T000 MK300S : 15k steps
Keep relay Timer elapsed value MK200S : 7k steps
(512 points) “K” (256 words)
K31 T255
F00 C000
Special relay Counter preset value
(1,024 points) (256 words)
“F”
F63 C255
L00 C000
Link relay
Counter elapsed value
(1,024 points)
L63 “L” C255 (256 words)

T000 S00
Timer relay (100ms) Step Controller

192 points (100 x 100 steps)


“T”
T191 S99 “S”
S00.00~S99.99
T192
Timer relay (10ms)

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

4.6.2 The memory map of K1000S

Bit Data Area Word Data Area User Program Area

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

(32 points) (256 words)


“M” T255
M191
K00 T000
Keep relay Timer elapsed value
(512 points) “K” (256 words)
K31 T255
F00 C000
Special relay Counter preset value
(1,024 points) (256 words)
“F”
F63 C255
L00 C000
Link relay
Counter elapsed value
(1,024 points)
L63 “L” C255 (256 words)

T000 S00
Timer relay (100ms) Step Controller

192 points (100 x 100 steps)


“T”
T191 S99 “S”
S00.00~S99.99
T192
Timer relay (10ms)

64 points “T”
T255
C000
Counter relay

256 points “C”


C255

4-30
Chapter 4 CPU modules MASTER-K

4.7 Assign I/O address


To read / write data I/O and special function modules, the CPU assigns I/O address (P
area) to each modules according to the module type. I/O address starts from P00 (word),
and it is assigned from left to right. The following figure shows an example of I/O address
allocation.
Main base (8 slots)

Output (16 points)

Output (32 points)

D/A module (8ch)


A/D module(4ch)
Input (16 points)

Input (32 points)

Input (64 points)


Power module

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

4.8 Parts names

 

1
2
3  1
2
4 4 1
5 2
7
6
8
4
8
7 9
A
6 6
8

MK1000S MK300S MK200S

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

RS-232C Connector for peripheral devices uses RS-232C protocol.


6
connector (Example : KGL-WIN)
Memory module
7 Connector for external memory module
connector
Battery
8 Connector for back-up battery
connector
Memory setting
9 Refer the Chapter 6
DIP switch
K3P-07AS : Not applicable
K3P-07BS : RS-422/485 interface terminal block
K3P-07CS : High speed counter input terminal block

K3P-07BS K3P-07CS
Terminal block RDA φA 24V
A for special
functions RDB φB 24V
SDA COM
SDB PRE 24V
SG PRE 0V

(Please refer chapter 13 and 16 for details)

4-33
Chapter 5 Battery

5 Battery ........................................................................................................ 5-1


5.1 Specifications ............................................................................................................5-1
5.2 Handling instructions ...............................................................................................5-1
5.3 Replacement procedure ...........................................................................................5-2
Chapter 5 Battery MASTER-K

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

5.2 Handling instructions

1) Do not heat or solder the terminals of battery.


2) Do not measure its voltage with a tester, or short circuit.
3) Do not disassemble

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

5.3 Replacement procedure

Replacement battery

Open the cover of CPU module

Remove the battery from CPU module

Connect a new battery

Check the STOP LED of CPU module

Is it flicking with 2sec No


period?

Yes
The battery is defected. Done

5-2
Chapter 6 Memory module

6 Memory module ......................................................................................... 6-1


6.1 Structure.....................................................................................................................6-1
6.2 Specifications ............................................................................................................6-1
6.2.1 K300S / K1000S.....................................................................................................6-1
6.2.2 K200S.....................................................................................................................6-2
6.3 How to use the memory module..............................................................................6-2
6.3.1 Write a program into memory module....................................................................6-2
6.3.2 Execute the program of memory module ...............................................................6-3
Chapter 6 Memory module MASTER-K

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.2.1 K300S / K1000S


The K300S / K1000S CPU module will operate as flash memory mode automatically if the
memory module is mounted in a STOP mode and then the CPU module is switched as
RUN mode. The following table shows specifications of memory module of K300S /
K1000S series.

Type K300S K1000S


Item K4M-32S K764S
Memory device Flash memory Flash memory
Capacity 128k byte (32k steps) 256k byte (64k steps)
Weight 10g 14g

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.

DIP switch setting Description

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.)

ROM MODE 2 1: Off, 2: On


When the CPU starts with RUN mode, the CPU module
ON

TEST MODE 1 operates with the program stored in flash memory.

6.3 How to use the memory module

6.3.1 Write a program into memory module


When insert memory module into the memory connector of CPU module, make sure the
power of CPU is turned off. To write a program on memory module, the CPU should be
on STOP mode.

1) Download a program to be written on a memory module. (Use KGL-WIN or KLD-


150S)
2) Switch the CPU to the STOP mode and turn off power.
3) Insert a memory module into the memory module connector of CPU module.
4) Turn on the power
5) Execute flash memory write function with KGL-WIN or KLD-150S.

Remark

1. Refer the user’s manual of KGL-WIN or KLD-150S for details.


2. In case of K200S, switch the CPU to STOP mode and select flash memory write function of
KGL-WIN or KLD-150S.

6-2
Chapter 6 Memory module MASTER-K

6.3.2 Execute the program of memory module


The CPU module checks the memory module is mounted or not when the CPU starts
RUN mode. Then, if the memory module is mounted, the CPU module reads the program
and parameter of memory module and writes it to the internal RAM of CPU module to
execute the program of memory module.
The following procedure shows how to operate a CPU with flash run mode.

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................................................................................................ 7-1


7.1 Notes on selecting I/O modules...............................................................................7-1
7.2 Digital input modules................................................................................................7-2
7.2.1 8 points 12/24VDC input module (source / sink type).......................................7-2
7.2.2 16 points 12/24VDC input module (source/sink type).......................................7-3
7.2.3 16 points 12/24 VDC input module (source type) .............................................7-4
7.2.4 32 points 12/24 VDC input module (source/sink type)......................................7-5
7.2.5 32 points 12/24 VDC input module (source type) .............................................7-6
7.2.6 64 points 12/24VDC input module (source/sink type).......................................7-7
7.2.7 8 points 110VAC input module ..........................................................................7-8
7.2.8 16 points 110VAC input module ........................................................................7-9
7.2.9 32 points 110VAC input module ......................................................................7-10
7.2.10 8 points 220VAC input module........................................................................ 7-11
7.2.11 16 points 220VAC input module......................................................................7-12
7.2.12 32 points 220VAC input module......................................................................7-13
7.2.13 Interrupt input module .....................................................................................7-14
7.3 Digital output modules ...........................................................................................7-15
7.3.1 8 points relay output module...........................................................................7-15
7.3.2 16 points relay output module.........................................................................7-16
7.3.3 32 points relay output module.........................................................................7-17
7.3.4 8 points triac output module............................................................................7-18
7.3.5 16 points triac output module..........................................................................7-19
7.3.6 32 points triac output module..........................................................................7-20
7.3.7 16 points transistor output module (sink type) ................................................7-21
7.3.8 32 points transistor output module (sink type) ................................................7-22
7.3.9 64 points transistor output module (sink type) ................................................7-23
7.3.10 16 points transistor output module (source type)............................................7-24
7.3.11 32 points transistor output module (source type)............................................7-25
7.3.12 64 points transistor output module (source type)............................................7-26
Chapter 7 I/O modules MASTER-K

7 I/O modules

7.1 Notes on selecting 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

7.2 Digital input modules

7.2.1 8 points 12/24VDC input module (source / sink type)

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Ω

Response Off ! On 5 msec or less


time On ! Off 5 msec or less
Common 8 points / 1 com
Internal current consumption 40 mA
Operation indicator LED display
External wiring 9 points terminal block connector ( M3×6 screw )
Weight 120 g
Wiring diagram

0
1
2
3
4
5
6
7
COM

7-2
Chapter 7 I/O modules MASTER-K

7.2.2 16 points 12/24VDC input module (source/sink type)

Type K200S K300S K1000S


Specification K3X-210S K4X-210S K7X-210S
Input points 16 points
Insulation method Photo coupler insulation
Rated input voltage 12 / 24 VDC
Rated input current 3 / 7 mA 5 / 11mA
Operating input voltage 10.2 ~ 26.4 VDC ( ripple : 5% or less )
Max. simultaneously on 16 points (100%)
On voltage / current 9.5 VDC / 3.5 mA 9.5 VDC / 4.0 mA
Off voltage / current 5 VDC / 1.5 mA 6 VDC / 1.0 mA
Input impedance About 3.3kΩ About 2.2kΩ

Response Off ! On 5 msec or less 10 msec or less


time On ! Off 5 msec or less 10 msec or less
Common 8 points / 1 com
Internal current consumption 70 mA
Operation indicator LED display
18 points terminal
External wiring 20 points terminal block connector
block connector
Weight 150 g 250 g 370 g
Wiring diagram

[ K3X-210S ] [ K4X-210S ] [ K7X-210S ]

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

7.2.3 16 points 12/24 VDC input module (source type)

Type K200S K300S


Specification K3X-240S K4X-240S
Input points 16 points
Insulation method Photo coupler insulation
Rated input voltage 24 VDC 12 / 24 VDC
Rated input current 7 mA 5 / 11mA
Operating input voltage 20.4~28.8 VDC (ripple : 5% or less) 10.2~26.4 VDC (ripple : 5% or less)
Max. simultaneously on 16 points (100%)
On voltage / current 15 VDC / 4.3 mA 9.5 VDC / 4.0 mA
Off voltage / current 5 VDC / 1.7 mA 6 VDC / 1.0 mA
Input impedance About 3.3kΩ About 2.2kΩ

Response Off ! On 5 msec or less 10 msec or less


time On ! Off 5 msec or less 10 msec or less
Common 8 points / 1 com
Internal current consumption 70 mA
Operation indicator LED display
External wiring 18 points terminal block connector 20 points terminal block connector
Weight 150 g 250 g
Wiring diagram

[ 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

7.2.4 32 points 12/24 VDC input module (source/sink type)

Type K200S K300S K1000S


Specification K3X-310S K4X-310S K7X-310S
Input points 32 points
Insulation method Photo coupler insulation
Rated input voltage 12 / 24 VDC
Rated input current 3 / 7 mA 5 / 11mA
Operating input voltage 10.2 ~ 26.4 VDC ( ripple : 5% or less )
Max. simultaneously on 19 points (60%)
On voltage / current 9.5 VDC / 3.5 mA 9.5 VDC / 4.0 mA
Off voltage / current 5 VDC / 1.5 mA 6 VDC / 1.0 mA
Input impedance About 3.3kΩ About 2.2kΩ

Response Off ! On 5 msec or less 10 msec or less


time On ! Off 5 msec or less 10 msec or less
Common 32 points / 1 com 8 points / 1 com
Internal current consumption 75 mA 125 mA
Operation indicator LED display
38 points terminal
External wiring 37 pin D-sub connector
block connector
Weight 110 g 190 g 460 g
Wiring diagram

[ K3X-310S ] & [ K4X-310S ] [ K7X-310S ]

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

7.2.5 32 points 12/24 VDC input module (source type)

Type K200S K300S


Specification K3X-340S K4X-340S
Input points 32 points
Insulation method Photo coupler insulation
Rated input voltage 24 VDC 12 / 24 VDC
Rated input current 7 mA 3 / 7 mA
Operating input voltage 20.4~28.8VDC (ripple: 5% or less) 10.24~26.4VDC (ripple: 5% or less)
Max. simultaneously on 19 points (60%)
On voltage / current 15 VDC / 4.3 mA 9.5 VDC /3.0 mA
Off voltage / current 5 VDC / 1.7 mA 6 VDC / 1.5 mA
Input impedance About 3.3kΩ

Response Off ! On 5 msec or less 10 msec or less


time On ! Off 5 msec or less 10 msec or less
Common 32 points / 1 com
Internal current consumption 75 mA
Operation indicator LED display
External wiring 37 pin D-sub connector
Weight 110 g 190 g
Wiring diagram

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

7.2.6 64 points 12/24VDC input module (source/sink type)

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Ω

Response Off ! On 10 msec or less


time On ! Off 10 msec or less
Common 32 points / 1 com
Internal current consumption 120 mA
Operation indicator LED display
External wiring 40-pin D-sub connector (2 connectors)
Weight 460 g
Wiring diagram

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

7.2.7 8 points 110VAC input module

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Ω

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 41 mA
Operation indicator LED display
External wiring 9 points terminal block connector ( M3×6 screw )
Weight 140 g
Wiring diagram

COM

110VAC

7-8
Chapter 7 I/O modules MASTER-K

7.2.8 16 points 110VAC input module

Type K300S K1000S


Specification K4X-220S K7X-220S
Input points 16 points
Insulation method Photo coupler insulation
Rated input voltage 110VAC ( 50 / 60 Hz )
Rated input current 11 mA ( 110VAC, 60 Hz )
Operating input voltage 85 ~ 132 VAC ( 47 ~ 63 Hz )
Max. simultaneously on 8 points / 1COM (100%)
Inrush current Max. 600 mA ( 0.3msec, 132 VAC )
On voltage / current 80 VAC / 6 mA
Off voltage / current 30 VAC / 3 mA
Input impedance About 10 kΩ

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 70 mA
Operation indicator LED display
External wiring 20 points terminal block connector ( M3×6 screw )
Weight 290 g 420 g
Wiring diagram

[ 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

7.2.9 32 points 110VAC input module

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Ω

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 120 mA
Operation indicator LED display
External wiring 38 points terminal block connector ( M3×6 screw )
Weight 560 g
Wiring diagram

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

7.2.10 8 points 220VAC input module

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Ω

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 40 mA
Operation indicator LED display
External wiring 9 points terminal block connector ( M3×6 screw )
Weight 140 g
Wiring diagram

COM

220VAC

7-11
Chapter 7 I/O modules MASTER-K

7.2.11 16 points 220VAC input module

Type K300S K1000S


Specification K4X-230S K7X-230S
Input points 16 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 / 1COM (100%)
Inrush current Max. 600 mA ( 0.12msec, 264 VAC )
On voltage / current 80 VAC / 6 mA
Off voltage / current 30 VAC / 3 mA
Input impedance About 10 kΩ

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 70 mA
Operation indicator LED display
External wiring 20 points terminal block connector ( M3×6 screw )
Weight 300 g 420 g
Wiring diagram

[ 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

7.2.12 32 points 220VAC input module

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Ω

Response Off ! On 15 msec or less


time On ! Off 25 msec or less
Common 8 points / 1 com
Internal current consumption 120 mA
Operation indicator LED display
External wiring 38 points terminal block connector ( M3×6 screw )
Weight 560 g
Wiring diagram

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

7.2.13 Interrupt input module

Type K300S K1000S


Specification K4F-INTA K7F-INTA
Input points 8 points 16 points
Insulation method Photo coupler insulation
Rated input voltage 24 VDC
Rated input current 10 mA
Operating input voltage 21.6 ~ 26.4 VDC
Max. simultaneously on 1 points / 1COM (100%)
On voltage / current 15 VAC / 6.5 mA
Off voltage / current 5 VDC / 2 mA
Input impedance About 2.4 kΩ

Response Off ! On 0.5 msec or less


time On ! Off 0.5 msec or less
Common 1 points / 1 com
Internal current consumption 65 mA 200 mA
Operation indicator LED display
20 points terminal block connector 38 points terminal block connector
External wiring
( M3×6 screw ) ( M3×6 screw )
Weight 160 g 400 g
Wiring diagram

[ 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

7.3 Digital output modules

7.3.1 8 points relay output module


Type K200S
Item K3Y-101S
Output points 8 points
Insulation method Photo coupler
Rated load voltage / current 24 VDC / 2A (resistive load), 220 VAC / 2A (cosψ = 1)
Minimum load voltage / current 5 VDC / 1mA
Maximum load voltage 125 VDC / 250 VAC
Leakage current 0.1 mA ( 220 VAC, 60Hz )
Maximum switching frequency 3,600 times / hour
Surge absorber None
Mechanical No load Over 20 million times
Rated voltage / current Over 0.1 million times
Lifetime of
200VAC / 1.5A, 240VAC / 1A (cosψ = 0.7) Over 0.1 million times
contact Electrical
200VAC / 1A, 240VAC / 0.5A (cosψ = 0.35) Over 0.1 million times
24VDC / 1A, 100VDC / 0.1A (L / R = 7ms) Over 0.1 million times
Off ! On 10msec or less
Response time
On ! Off 12msec or less
Common method 1 point / 1COM (Independent common)
Internal current consumption 210mA (when all outputs are on)
Operation indicator LED
External wiring 18 points terminal block connector ( M3×6 screw)
Weight 160 g
Wiring diagram

00
L

01

02

03

04

05

06

07
L

N.C
N.C

7-15
Chapter 7 I/O modules MASTER-K

7.3.2 16 points relay output module


Type K200S K300S K1000S
Item K3Y-201S K4Y-201S K7Y-201S
Output points 16 points
Insulation method Photo coupler
Rated load Per 1 point 24 VDC / 2A (resistive load), 220 VAC / 2A (cosψ = 1)
voltage / current Per 1 COM 5A / 1COM 4A / 1COM 8A / 1COM
Minimum load voltage/current 5 VDC / 1mA
Maximum load voltage 110 VDC / 250 VAC 125 VDC / 250 VAC
Leakage current 0.1 mA ( 220 VAC, 60Hz )
Maximum switching frequency 1,200 times / hour 3,600 times / hour
Surge absorber None
Mechanical No load Over 20 million times
Rated voltage / current Over 0.1 million times
Lifetime of
200VAC / 1.5A, 240VAC / 1A (cosψ = 0.7) Over 0.1 million times
contact Electrical
200VAC / 1A, 240VAC / 0.5A (cosψ = 0.35) Over 0.1 million times
24VDC / 1A, 100VDC / 0.1A (L / R = 7ms) Over 0.1 million times
Off ! On 10 msec or less
Response time
On ! Off 12 msec or less
Common method 8 point / 1COM
Internal current consumption 400mA (all outputs on) 100mA (when all outputs are on)
External power Voltage None 24 VDC ± 10% ( ripple : 4 Vp-p or less )
supply Current None Max. 100mA Max. 150 mA
Operation indicator LED
18 points terminal block
External wiring 20 points terminal block connector
connector
Weight 190 g 310 g 460 g
Wiring diagram
[ K3Y-201S ] [ K4Y-201S ] [ K7Y-201S ]

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

7.3.3 32 points relay output module


Type K1000S
Item K7Y-301S
Output points 32 points
Insulation method Photo coupler
Rated load Per 1 point 24 VDC / 2A (resistive load), 220 VAC / 2A (cosψ = 1)
voltage / current Per 1 COM 5A / 1COM
Minimum load voltage / current 5 VDC / 1mA
Maximum load voltage 125 VDC / 250 VAC
Leakage current 0.1 mA ( 220 VAC, 60Hz )
Maximum switching frequency 3,600 times / hour
Surge absorber None
Mechanical No load Over 20 million times
Rated voltage / current Over 0.1 million times
Lifetime of
200VAC / 1.5A, 240VAC / 1A (cosψ = 0.7) Over 0.1 million times
contact Electrical
200VAC / 1A, 240VAC / 0.5A (cosψ = 0.35) Over 0.1 million times
24VDC / 1A, 100VDC / 0.1A (L / R = 7ms) Over 0.1 million times
Off ! On 10 msec or less
Response time
On ! Off 12 msec or less
Common method 8 point / 1COM
Internal current consumption 200mA (when all outputs are on)
External power Voltage 24 VDC ± 10% ( ripple : 4 Vp-p or less )
supply Current Max. 170 mA
Operation indicator LED
External wiring 38 points terminal block connector
Weight 550 g
Wiring diagram

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

7.3.4 8 points triac output module

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

7.3.5 16 points triac output module

Type K300S K1000S


Item K4Y-202S K4Y-205S K7Y-202S
Output points 16 points
Insulation method Photo coupler
Rated load voltage 100 ~ 240 VAC ( 50 / 60 Hz )
Maximum load voltage 264 VAC
Maximum load Per 1point 1A 0.6 A 2A
current Per 1 COM 5A 2.4 A 5A
Minimum load current 20 mA
Leakage current 2.5 mA ( 220 VAC, 60Hz )
Maximum inrush current 25A, 10msec or less 20A, 10msec or less 40A, 10msec or less
On state voltage drop 1.5 VAC or less (1A) 1.5VAC or less (0.6A) 1.5VAC or less (2A)
Surge absorber Varistor (387 ~ 473 V), C-R absorber
Off ! On 1/2 cycle + 1 msec or less
Response time
On ! Off 1/2 cycle + 1 msec or less
Common method 8 point / 1COM
Internal current consumption 330 mA (when all outputs are on)
Operation indicator LED
External wiring 20 points terminal block connector ( M3×6 screw)
Weight 350 g 500 G
Wiring diagram

[ K4Y-202S & K4Y-205S ] [ K7Y-202S ]

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

7.3.6 32 points triac output module

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

7.3.7 16 points transistor output module (sink type)

Type K200S K300S K1000S


Item K3Y-203S K4Y-203S K7Y-203S
Output points 16 points
Insulation method Photo coupler
Rated load voltage 12 / 24 VDC
Maximum load Per 1 point 0.5 A / 1 point 2 A / 1 point
current Per 1 COM 5 A / 1COM 4 A / 1COM 8 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 4 A, 10 msec or less 8 A, 10 msec or less
On state voltage drop 1.5 VDC or less
Surge absorber Clamp diode Varistor Clamp diode
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 16 point / 1COM 8 point / 1COM
180mA 110mA 120mA
Internal current consumption
(all outputs are on) (all outputs are on) (all outputs are on)
External power Voltage 24 VDC ± 10% ( ripple : 4 Vp-p or less )
supply Current Max. 48mA per 1com Max. 100mA per 1com
Operation indicator LED
18 points terminal
External wiring 20 points terminal block connector
block connector
Weight 180 g 270 g 540 g
Wiring diagram

[ K3Y-203S ] [ K4Y-203S ] [ K7Y-203S ]

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

7.3.8 32 points transistor output module (sink type)

Type K200S K300S K1000S


Item K3Y-303S K4Y-303S K7Y-303S
Output points 32 points
Insulation method Photo coupler
Rated load voltage 12 / 24 VDC
Maximum load Per 1 point 0.1 A / 1 point 0.1 A / 1 point 0.5 A / 1 point
current Per 1 COM 2 A / 1COM 2 A / 1COM 3 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 0.4 A, 10 msec or less 4 A, 10 msec or less 4 A, 10 msec or less
On state voltage drop 2.0 VDC or less 1.0 VDC or less 1.5 VDC or less
Surge absorber Clamp diode
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 32 point / 1COM 16 point / 1COM
180mA 110mA 120mA
Internal current consumption
(all outputs are on) (all outputs are on) (all outputs are on)
Voltage 10.2 ~ 26.4 VDC 24 VDC ± 10% ( ripple : 4 Vp-p or less )
External power
supply Max. 36mA per
Current Max. 150mA per 1com
1com
Operation indicator LED
38 points terminal
External wiring 32 Pin D-sub connector
block connector
Weight 110 g 180 g 500 g
Wiring diagram
[ K3Y-303S & K4Y-303S ] [ K7Y-303S ]

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

7.3.9 64 points transistor output module (sink type)

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

7.3.10 16 points transistor output module (source type)

Type K200S K300S


Item K3Y-204S K4Y-204S
Output points 16 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.5 A / 1 point
current Per 1 COM 4 A / 1COM 3 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 4 A, 10 msec or less
On state voltage drop 1.5 VDC or less
Surge absorber Clamp diode Varistor
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 16 point / 1COM 8 point / 1COM
Internal current consumption 180mA (all outputs are on) 110mA (all outputs are on)
External power Voltage 24 VDC ± 10% ( ripple : 4 Vp-p or less )
supply Current Max. 48mA per 1com Max. 100mA per 1com
Operation indicator LED
External wiring 18 points terminal block connector 20 points terminal block connector
Weight 180 g 270 g
Wiring diagram

[ 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

7.3.11 32 points transistor output module (source type)

Type K200S K300S K1000S


Item K3Y-304S K4Y-304S K7Y-304S
Output points 32 points
Insulation method Photo coupler
Rated load voltage 12 / 24 VDC
Maximum load Per 1 point 0.1 A / 1 point 0.1 A / 1 point 0.5 A / 1 point
current Per 1 COM 2 A / 1COM 2 A / 1COM 3 A / 1COM
Leakage current 0.1 mA
Maximum inrush current 0.4 A, 10 msec or less 4 A, 10 msec or less 4 A, 10 msec or less
On state voltage drop 2.0 VDC or less 1.0 VDC or less 1.5 VDC or less
Surge absorber Clamp diode
Off ! On 2 msec or less
Response time
On ! Off 2 msec or less
Common method 32 point / 1COM 16 point / 1COM
180mA 110mA 120mA
Internal current consumption
(all outputs are on) (all outputs are on) (all outputs are on)
Voltage 10.2 ~ 26.4 VDC 24 VDC ± 10% ( ripple : 4 Vp-p or less )
External power
supply Max. 36mA per
Current Max. 150mA per 1com
1com
Operation indicator LED
38 points terminal
External wiring 32 Pin D-sub connector
block connector
Weight 110 g 180 g 500 g
Wiring diagram
[ K3Y-304S & K4Y-304S ] [ K7Y-304S ]

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

7.3.12 64 points transistor output module (source type)

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

8 Power supply modules ............................................................................. 8-1


8.1 Selection of power supply module..........................................................................8-1
8.1.1 K200S.....................................................................................................................8-1
8.1.2 K300S.....................................................................................................................8-2
8.1.3 K1000S...................................................................................................................8-3
8.2 Specifications ............................................................................................................8-4
8.2.1 K200S series ..........................................................................................................8-4
8.2.2 K300S series ..........................................................................................................8-5
8.2.3 K1000S series ........................................................................................................8-5
8.3 Parts names and descriptions .................................................................................8-6
Chapter 8 Power supply modules MASTER-K

8 Power supply modules


In this chapter, it will be described that the power supply modules of MASTER-K series.

8.1 Selection of power supply module

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

8.2.1 K200S series

Item K3S-302S K3S-304S K3S-012S K3S-014S


Rated voltage 100 ~ 240 VAC 12 ~ 24 VDC
Rated frequency 50 ~ 60 Hz -
Rated current 0.7 / 0.35 A (110 / 220 VAC) 1.5 / 0.7 A (12 / 24 VDC)
Input

Inrush current Max. 30 A Max. 40 A


Efficiency 65% or more (with rated load) 65% or more (with rated load)
Fuse 3A/250VAC (slow blown type) -
Dropout tolerance 20msec or less 1msec or less
Output voltage 5VDC / 24VDC 5VDC / ±15VDC 5VDC 5VDC / ±15VDC
5VDC : 2A 5VDC : 2A
5VDC : 2A
Output current +15VDC : 0.5A 5VDC : 2A +15VDC : 0.5A
Output

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.2.2 K300S series


Item K4S-122S K4S-132S K4S-125S K4S-135S
Rated voltage 110VAC 220VAC 110VAC 220VAC
Rated frequency 50 ~ 60 Hz
Rated current 1.3 A 0.8 A 0.65 A 0.35 A
Input

Inrush current Max. 40 A


Efficiency 65% or more (with rated load)
Fuse 3A/250VAC (slow blown type)
Dropout tolerance 20msec or less
Output voltage 5VDC / 24VDC
5VDC : 5A 5VDC : 3A
Output current
Output

24VDC : 0.7A 24VDC : 0.5A

Over current 5VDC : 5.6A 5VDC : 3.2A


protection 24VDC : 0.8A 24VDC : 0.6A

Indicator LED (Turns on when output voltage is normal)


Wire specification 0.75 ~ 2mm2
Weight1 400 g

8.2.3 K1000S series


Item K7S-122S K7S-132S K7S-010S
Rated voltage 110VAC 220VAC 24VDC
Rated frequency 50 ~ 60 Hz -
Rated current 2.5 A 1.5 A 2.6 A
Input

Inrush current Max. 40 A Max. 100 A


Efficiency 65% or more (with rated load) 60% or more
Fuse 3A/250VAC (slow blown type) 8A / 250VAC
Dropout tolerance 20msec or less -
Output voltage 5VDC / 24VDC
5VDC : 5A 5VDC : 5A 5VDC : 6A
Output current
Output

24VDC : 1.5A 24VDC : 1.5A 24VDC : Bypass

Over current 5VDC : 5.75A 5VDC : 5.75A 5VDC : 6.5A


protection 24VDC : 1.6A 24VDC : 1.6A 24VDC : Bypass

Indicator LED (Turns on when output voltage is normal)


Wire specification 0.75 ~ 2mm2
Weight1 700 g

8-5
Chapter 8 Power supply modules MASTER-K

8.3 Parts names and descriptions

 

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 Base boards and cables ........................................................................... 9-1


9.1 Specifications ............................................................................................................9-1
9.1.1 Main base...............................................................................................................9-1
9.1.2 Expansion base......................................................................................................9-2
9.1.3 Expansion cable .....................................................................................................9-2
9.2 Parts names and descriptions .................................................................................9-3
9.2.1 Main base...............................................................................................................9-3
9.2.2 Expansion base......................................................................................................9-5
Chapter 9 Base boards and cables MASTER-K

9 Base boards and cables

9.1 Specifications

9.1.1 Main base

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

9.1.2 Expansion base

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

9.1.3 Expansion cable

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

9.2 Parts names and descriptions

9.2.1 Main base


1) K200S

Guide hole for


panel mounting
Locking part for hook

Guide rail
I/O module connector
CPU module connector

Power supply 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

9.2.2 Expansion base

1) K300S

2) K1000S

9-5
Chapter 10 Installation and wiring

10Installation and wiring............................................................................. 10-1


10.1 Installation................................................................................................................10-1
10.1.1Installation environment .......................................................................................10-1
10.1.2Precaution during installation ...............................................................................10-1
10.1.3Heat protection design of control box...................................................................10-1
10.1.4Calculation of the capacity of power supply.........................................................10-2
10.1.5Handling Instructions............................................................................................10-4
Mounting / dismounting of module ...............................................................................10-7
10.2.1Mounting a module on a base..............................................................................10-7
Chapter 10 Installation and wiring MASTER-K

10 Installation and wiring

10.1 Installation

10.1.1 Installation environment

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

10.1.2 Precaution during installation

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.

10.1.3 Heat protection design of control box

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

10.1.4 Calculation of the capacity of power supply

The following shows the procedure for calculating the PLC system power consumption.
1) PLC system power consumption block diagram

2) Power consumption of each part


 Power consumption of a power supply module
Approximately 70% of the power supply module current is converted into power and 30%
of that 70% dissipated as heat, i.e., 3/7 of the output power is actually used.
• Wpw = 3/7 {(I5V × 5) + (I24V × 24)} (W)
where, I5V = 5 VDC circuit current consumption of each module
I24V = 24 VDC circuit average current consumption of output modules (with
points simultaneously switched ON). Not for 24 VDC power supplied from external or
power supply modules that has no 24 VDC output.
 Total 5 VDC power consumption
The total power consumption of all modules is the power of the 5 VDC output circuit of the
power supply module.
• W 5V = I5V × 5 (W)
 Average 24 VDC power consumption (with points simultaneously switched ON)
The total power consumption of all modules is the average power of the 24 VDC output circuit of the power
supply module.
• W 24V = I24V × 24 (W)

10-2
Chapter 10 Installation and wiring MASTER-K

 Average power consumption by voltage drop of output modules (with points


simultaneously switched ON)
• Wout = Iout × Vdrop × output points × the rate of points switched on simultaneously (W)
Iout : output current (actual operating current) (A)
Vdrop : voltage dropped across each output load (V)
 Average power consumption of input circuits if input modules (with points
simultaneously switched ON)
• Win = Iin × E × input points × the rate of points switched on simultaneously (W)
Iin : input current (effective value for AC) (A)
E: input voltage (actual operating voltage) (V)
 Power consumption of the special module power supply
• Ws = I5V × 5 + I24V × 24 + I100V × 100 (W)

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).

The temperature rise in the control panel is expressed as:


T = W/UA [°C]
W : Power consumption of the entire PLC system (obtained as shown above)
A : Control panel inside surface area (m2)
U : 6 (if the control panel temperature is controlled by a fan, etc.)
4 (if control panel air is not circulated)

10-3
Chapter 10 Installation and wiring MASTER-K

10.1.5 Handling Instructions


to installing the temperature-measuring resistor input module, be sure to check the following:
• Do not drop it off, and make sure that strong shock should not be applied.
• Do not unload the PCB from its case. It can cause faults.
• During wiring, be sure to check any foreign matter like wire scraps should not enter into
the upper side of the PLC. If any foreign matter has entered into it, always eliminate it.
• Do not load or unload the module while the power supply is being connected.

1) I/O module handling instructions


The followings explains instructions for handling or installing the input module.
 I/O module specifications re-check
Re-check the input voltage for the input module. If a voltage over the maximum
switching capacity is applied, it can cause faults, destruction or fire.
 Wire selection
Select the wire with due consideration of ambient temperature and rated current. Its
minimum specifications should be AWG22(0.3 mm2) or more.
 Environment
When wiring the I/O module, if it locates near a device generating an cause short
circuit, destruction or malfunction.
 Polarity
Before applying the power to a module that has polarities, be sure to check its
polarities.
 Wiring
• Wiring I/O wires with high voltage cable or power supply line can cause malfunction
or disorder.
• Be sure that any wire does not pass across during input LED (I/O status will not be
clearly identified.
• If an inductive load has been connected to output module, connect parallel surge
killer or diode to a load. Connect the cathode part of diode to the + part of the power
supply.

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.

2) 2) Base board mounting instructions


The following explains instructions for mounting the PLC onto the control panel.
 Allow sufficient distance from the upper part of the module for easy module
replacement.
 Do not mount the PLC in a vertical or horizontal position because it affects on
ventilation.
 Do not mount the base board together with a large-sized electromagnetic contactor or
no-fuse breaker, which produces vibration, on the same panel. Mount them on
different panels, or keep the base board away from such a vibration source.
 Mount the wire duct as it is needed.
 If the clearances are less than those in Fig 10.1, follow the instructions shown below.
• If the wire duct is mounted on the upper part of the PLC, make the wiring duct clearance
50mm or less for good ventilation. Also, allow the distance enough to press the hook in
the upper part from the upper part of the PLC.
• If the wire duct is mounted on the lower part of the PLC, make optic or coaxial cables
contact it and consider the minimum diameter of the cable.
 To protect the PLC from radiating noise or heat, allow 100 mm or more clearances
between it and parts. Left or right clearance and clearance from other device in the
left or right side should be 50 mm or more.

board

board

[Fig. 10.1] PLC mounting

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

10.2 Mounting / dismounting of module

10.2.1 Mounting a module on a base

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

10.2.2 Dismounting a module from base board

1) K200S

 Press the locking hook and pull a module as following figure.

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

 First, push the hook latch fully.


 While pushing the hook latch, pull the upper part of the module toward you.
 Lift upwards and remove the module hook from the module fixing hole.

10-12
Chapter 10 Installation and wiring MASTER-K

10.3 Wiring
The followings explains the wiring instructions for use of the system.

10.3.1 Power Supply Wiring


1) When voltage fluctuations are larger than the specified value, connect a constant-voltage
transformer.
2) Use a power supply which generates minimal noise across wire and across PLC and
ground. (When excessive noise is generated, connect an insulating transformer)
3) When wiring, separate the PLC power supply from the I/O and power device as shown
below.

10-13
Chapter 10 Installation and wiring MASTER-K

4) Notes on using 24 VDC output of the power supply module


 To protect the power supply modules, do not supply one I/O module with 24 VDDC
from several power supply modules connected in parallel.
 If 24 VDC output capacity is sufficient for one power supply module, supply 24 VDC
from the external 24 VDC power supply as shown below.

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.

9) Use a insulating transformer or noise filter for protection against noise .


10) Twist every input power supply wires as closely as possible. Do not allow the transformer
or noise filter across the duct.

10-14
Chapter 10 Installation and wiring MASTER-K

10.3.2 Input and Output Devices Wiring

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.

5) If wiring has been done with a piping, ground the piping.


6) Separate the 24 VDC I/O cables from the 110 VAC and 220 VAC cables.
7) If wiring over 200 m or longer distance, problems can be caused by leakage currents
due to line capacity. Refer to the Section 12.4 Examples.

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

6) If a malfunction occurs depend on grounding point, separate FG (Base Board) with


ground.

10.3.4 Cable Specifications for wiring

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.

11.1 Maintenance and inspection

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.

Items Judgment criteria Corrective action


Temperature 0 ~ 55°C ( 32 ~ 131°F ) Adjust the temperature or / and humidity
Environment

as not exceed the operation temperature /


Humidity 5 ~ 95 % RH humidity range.
Use a insulation resist rubber or other
Vibration No vibration
prevention methods
Mounting condition of
No loose modules Mount a module firmly on base
modules
Terminal block screw No loose screws Fasten a screw firmly with rated torque
Power voltage ripple -15 % ~ +10% Adjust the power voltage
Spare parts No lack of spare parts Supplement spare parts

11-1
Chapter 11 Maintenance MASTER-K

11.2 Daily inspection

Perform daily inspections everyday as following table;


Corrective
Check Items Check points Judgment
Actions
Base unit
The base unit should be Retighten
mounting Check for loose mounting screws
securely mounted Screws
conditions

Mounting • Check if the hook is securely engaged Securely


The hook should be
conditions of • Check if the upper cover is securely engage the
securely engaged
I/O modules mounted hook

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

LED indicates an error)


Stop OFF(ON indicates an Refer
Check that the LED is OFF during Run
LED error) chapter 12
Input ON when input is ON,
Check that the LED turns ON and OFF
LED OFF when input is off

Output ON when output is ON.


Check that the LED turns ON and OFF
LED OFF when output is OFF

11-2
Chapter 11 Maintenance MASTER-K

11.3 Periodic inspection

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

Ingress of dust Retighten screws


or foreign Visual check No dust or foreign material
material
Loose terminal
Connecting conditions

Retighten Screws should not be loose Retighten


screws
Distance
between
Visual check Proper clearance Correct
solderless
terminals
Connectors should not be Retighten connector
Loose connector Visual check
loose mounting screws

Measure voltage across 85 to 132VAC


Line voltage check Change supply power
110/ 220 VAC terminal 170 to 264VAC

• Check total power failure If battery capacity


Check battery time and the specified source reduction is not
replacement time and life indicated, Change the
Battery
battery capacity battery when
reduction • Battery capacity reduction specified service life
should not be indicated is exceeded
If fuse melting
disconnection,
change the fuse
Fuse Visual check No melting disconnection
periodically because a
surge current can
cause heat

11-3
Chapter 12 Troubleshooting

12Troubleshooting ...................................................................................... 12-1


12.1 Basic procedure for troubleshooting....................................................................12-1
12.2 Troubleshooting ......................................................................................................12-2
12.2.1The power LED is turned off ................................................................................12-2
12.2.2The STOP LED is flickering..................................................................................12-3
12.2.3RUN and STOP LED are off ................................................................................12-4
12.2.4The load of the output module is not operating....................................................12-5
12.2.5Program download is unable................................................................................12-6
12.3 Troubleshooting questionnaire..............................................................................12-7
12.4 Troubleshooting examples.....................................................................................12-8
12.4.1Input circuit troubles and corrective actions .........................................................12-8
12.4.2Output circuit troubles and corrective actions ......................................................12-9
12.5 Error code list ........................................................................................................ 12-11
Chapter 12 Troubleshooting MASTER-K

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.

12.1 Basic procedure for troubleshooting

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 )

2) Cycling the power of PLC


See what happens on the PLC system when the key switch is moved to the STOP mode
and cycle the power of CPU module.

3) Narrow down the cause of problem.


From the result of above procedures, deduce where the cause of problem lies on, i.e;
 Inside of PLC or outside
 I/O module or other module
 Sequence program

12-1
Chapter 12 Troubleshooting MASTER-K

12.2 Troubleshooting

12.2.1 The power LED is turned off

Power LED is off

Is power supplied to NO
power module?
Supply the power

YES NO Is power LED YES


turned on?

Is the line voltage NO


within the rated Adjust the line voltage
value?

YES NO Is power LED YES


turned on?

Is the fuse blown YES


Replace the fuse
off?

NO
NO Is power LED YES
turned on?

Is the power module NO


Replace the fuse
fixed firmly?

YES
NO Is power LED YES
turned on?

Is the over-current YES 1) Reduce total current consumption


protection device by removing excessive current
operating? consumer
2) Cycle the power
NO

NO Is power LED YES


turned on?

Contact the nearest LGIS


representative
Done

12-2
Chapter 12 Troubleshooting MASTER-K

12.2.2 The STOP LED is flickering

STOP LED is flickering

Read the error code from


system error flag

Is it a program YES Revise program


error?

NO

Change the operation mode to


STOP mode

Perform a corrective action Download program to the PLC


according to the error code

Change the operation mode to


RUN mode

Does it operate NO
normally?

YES

Done Contact the nearest LGIS


representative

12-3
Chapter 12 Troubleshooting MASTER-K

12.2.3 RUN and STOP LED are off

RUN and STOP LED are off

Is an expansion YES Check the power module of


base connected? main base

NO

Disconnect an expansion base


Is the power module YES
of expansion base and cycle the power of main
on? power module

NO

Check the power module of


expansion base

Cycle the power of main and


expansion power module

NO Are RUN and STOP


LED off?

YES

Done Contact the nearest LGIS


representative

12-4
Chapter 12 Troubleshooting MASTER-K

12.2.4 The load of the output module is not operating

Load is not operating

Is the LED of output NO Monitor the internal status with


module turned on? handy loader or KGL-WIN

YES

Is the internal status YES


on?

NO

Check the voltage


Check the input condition between output and
YES Is the power of
external load
by monitoring function of common terminal of
supplied? handy loader or KGL-WIN output module

NO

Is the input YES


Correct the wiring of external condition Is it OK? YES
load and cycle the power of turned on?
external load
NO
NO

Correct the wiring of input Adjust the voltage


module and cycle the to rated value
power of PLC

Replace output module

Contact the nearest LGIS


representative

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

12.2.5 Program download is unable

Program download is unable

Set the key switch at the


Is the key switch on NO remote stop mode and
remote stop mode?
download the program

YES

Is the STOP LED NO Contact the nearest LGIS


flickering? representative

YES

Read the error flag and


perform the corrective action
according to the contents of
error flag

12-6
Chapter 12 Troubleshooting MASTER-K

12.3 Troubleshooting questionnaire

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.

1) Telephone and FAX number TEL :


FAX :
2) The model of PLC
3) Details of each modules
 CPU module :
 O/S version :
 Serial number of module :
 Version of Handy loader / KGL-WIN :
4) General description of system and devices to be controlled.

5) CPU module operation


 Key switch operation ( )
 KGL-WIN or remote operation ( )
 Memory module operation ( )
6) The STOP LED is flickering? Yes ( ) No ( )
7) The error massage given by KGL-WIN :
8) A list of things you have already tried to remedy the problem :

9) Error occurrence condition


• Periodical Constant interval ( ) Related to environment ( )
Related to a particular sequence program ( )
• Non-periodical
10) More information about error ( Please describe as detail as possible )

11) System configuration diagram

12-7
Chapter 12 Troubleshooting MASTER-K

12.4 Troubleshooting examples


This chapter shows some typical examples

12.4.1 Input circuit troubles and corrective actions


Condition Cause Corrective Action
Input signal Leakage current of external device (such • Connect an appropriate register and
does not as a drive by non-contact switch) capacity which will make the voltage across
turn OFF the terminals of the input module lower than

Input signal Leakage current of external device (Drive


does not by a limit switch with neon lamp)
turn OFF • C and R values are determined by the
leakage current value
- Reminded value C : 0.1 ~ 0.47uF
R : 47 ~ 120Ω (1/2W)
Or make up another independent display
circuit
Input signal Leakage current due to line capacity of • Power supply is located on the external
does not wiring cable device side as shown below
turn OFF

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)

• E1 > E2, Sneak current

12-8
Chapter 12 Troubleshooting MASTER-K

12.4.2 Output circuit troubles and corrective actions


Condition Cause Corrective Action
When the output • Load is half-wave rectified inside • Connect registers of tens to
is Off, excessive (in some cases, it is true of a solenoid) hundreds kΩ across the load in
voltage is parallel
• When the polarity of the power supply is
applied to the
as shown in ➀, C is charged. When the
load
polarity is as shown in➁, the voltage
charged in C plus the line voltage are
applied across D. Max voltage is approx.
  times of rated voltage

If a resistor is used in this way, it does not


cause a problem to the output element. But
it may make the performance of the
diode(D), which is built in the load, drop to
cause problems
The load does • Leakage current by surge absorbing • Connect C and R across the load,
not turn OFF circuit which is connected to output element which are of registers of tens kΩ
in parallel
When the wiring distance from the
output module to the load is long,
there may be a leakage current due to
the line capacity

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)

• E1 < E2 : sneak current


• E1 is switched Off and E2 is switched If the load is the relay, etc, connect a
ON : sneak current counter-electromotive voltage
absorbing code as show by the dot
line
Off response • Over current at Off state • Insert a small L/R magnetic relay
time of the load and drive the load using the same
[when a large current fluid load (L/R is
is long contact
large) such as solenoid is directly driven
with the transistor output]

• The off response time can be delayed by


one or more second as some loads make
the current flow across the diode at the off
time of the transistor output
Output Surge current of the white lamp • To suppress the surge current make
transistor is the dark current of 1/3 to 1/5 rated
destroyed current flow

A surge current of 10 times or more when


turned ON.

12-10
Chapter 12 Troubleshooting MASTER-K

12.5 Error code list

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

13RS-232C function of K200S .................................................................... 13-1


13.1 Introduction .............................................................................................................13-1
13.2 System configuration..............................................................................................13-2
13.2.1Connection with PC ( without handshake function ) ............................................13-2
13.2.2Connection with monitoring unit ( with handshake function )...............................13-2
13.3 Pin assignment ........................................................................................................13-3
13.3.1Pin-out of K200S RS-232C connector .................................................................13-3
13.3.2Connection without handshake function ..............................................................13-3
13.3.3Connection with handshake function ...................................................................13-3
13.4 Frame structure .......................................................................................................13-4
13.4.1General structures................................................................................................13-4
13.5 Instruction list..........................................................................................................13-5
13.6 Data address structure ...........................................................................................13-6
13.6.1Start of data..........................................................................................................13-6
13.6.2Device type...........................................................................................................13-6
13.6.3Data type ..............................................................................................................13-7
13.6.4Device number .....................................................................................................13-7
13.7 Examples of command execution .........................................................................13-8
13.7.1Read single device ( RSS ) ..................................................................................13-8
13.7.2Read continuous devices (RSB) ........................................................................ 13-11
13.7.3Write single device (WSS) .................................................................................13-14
13.7.4Write continuous device (WSB) .........................................................................13-17
13.7.5Register monitoring number...............................................................................13-20
13.7.6Execute monitoring.............................................................................................13-23
13.7.7Read the status of PLC (RST) ...........................................................................13-25
13.8 Error code list ........................................................................................................13-28
Chapter 13 RS-232C function of K200S MASTER-K

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

13.2 System configuration


The system configuration can be divided in 2 types as following;

13.2.1 Connection with PC ( without handshake function )


With this system configuration, a computer program for communication can be a user’s
own program ( it may be written with C or other programming language ), or commercial
MMI programs such as FAM, CIMON, or etc.




P C O
P I
W U
U N
R T








13.2.2 Connection with monitoring unit ( with handshake function )




P C O
P I
W U
U N
R T






13-2
Chapter 13 RS-232C function of K200S MASTER-K

13.3 Pin assignment

13.3.1 Pin-out of K200S RS-232C connector

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 )

13.3.2 Connection without handshake function

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

External device ( PC ) PLC ( K200S ) Loader ( KGL-WIN )

13.3.3 Connection with handshake function

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

External device ( PMU ) PLC ( K200S ) Loader ( KGL-WIN )

13-3
Chapter 13 RS-232C function of K200S MASTER-K

13.4 Frame structure

13.4.1 General structures

1) Request frame ( External devices ! CPU )

(Max. 256byte)

Frame
Station No

Instruction

Header Instruction Data Tail


check
(ENQ) type (EOT)
(BCC)

2) ACK response frame (CPU ! External devices, when normal data is received)

(Max. 256byte)

Frame
Station No

Instruction

Header Instruction Data or NULL Tail


check
(ACK) type (ETX)
(BCC)

3) NAK response frame (CPU ! External devices, when abnormal data is received)

(Max. 256byte)

Frame
Station No

Instruction

Header Instruction Error code Tail


check
(NAK) type ( ASCII 4 byte) (ETX)
(BCC)

Remark

The following table describes several control codes. They are importantly used in serial
communication, so they should be well acquainted.

Code Hex value Original word Description


ENQ (header) h05 Enquire Start of request frame
ACK (header) h06 Acknowledge Start of ACK response frame
NAK (header) h15 Not acknowledge Start of NAK response frame
EOT (tail) h04 End of text End of request frame
ETX (tail) h03 End text End of response frame

13-4
Chapter 13 RS-232C function of K200S MASTER-K

13.5 Instruction list

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

13.6 Data address structure


This chapter describes how to assign the address of device when performs read / write function.

[ Example of data structure ]

% M W 0 1 2 3

Device number
Data type
Device type
Start of data

13.6.1 Start of data


The ‘%’ symbol indicates the start of data address. It must be located the start of data
address.

13.6.2 Device type

Device type Device range Remark


%PW0000 ~ %PW0031 ( 32 words )
P ( I/O relay ) Read / Write
%PX0000 ~ %PX031F ( 32 × 16 bits )
%MW0000 ~ %MW0191 ( 192 words )
M ( auxiliary relay ) Read / Write
%MX0000 ~ %MX191F ( 192 × 16 bits )
%KW0000 ~ %KW0031 ( 32 words )
K ( keep relay ) Read / Write
%KX0000 ~ %KX031F ( 32 × 16 bits )
%LW0000 ~ %LW0063 ( 64 words )
L ( link relay ) Read / Write
%LX0000 ~ %LX063F ( 64 × 16 bits )
%FW0000 ~ %FW0063 ( 64 words )
F ( special relay ) Read
%FX0000 ~ %FX063F ( 64 × 16 bits )
T ( timer contact relay ) %TX0000 ~ %TX0255 ( 256 bits ) Read / Write
T ( timer elapsed value ) %TW0000 ~ %TW0255 ( 256 words ) Read / Write
C ( counter contact relay ) %CX0000 ~ %CX0255 (256 bits ) Read / Write
C ( counter elapsed value ) %CW0000 ~ %CW0256 ( 256 words ) Read / Write
S ( step controller ) %SW0000 ~ %SW0099 ( 100 sets ) Read / Write
D ( data register ) %DW0000 ~ %DW4999 ( 5000 words ) Read / Write

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 )

13.6.3 Data type


Symbol Data type Examples
X ( h58 ) bit %mx0003, %PX001C, %TX0002
W ( h57 ) word %mw0003, %PW0012, %CW0120

13.6.4 Device number

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.

Examples) %MX010E : indicates bit E ( 15th bit ) of M010 word


%MW0100 : indicates M100 word
%DW0200 : indicates D0200 word
%PX031A : indicates bit A ( 10th bit ) of P031 word
%TX0012 : indicates output relay of timer 12
%TW0012 : indicates elapsed value of timer 12
%SW0024 : indicates 24th set ( S24.00 ~ S24.99 ) of step controller

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.

Example ) %MX01 = %MX001 = …. = %MX0000001 = %MX00000001


%DW31 = %DW031 = …. = %DW0000031 = %DW00000031

13-7
Chapter 13 RS-232C function of K200S MASTER-K

13.7 Examples of command execution

13.7.1 Read single device ( RSS )


1) Introduction
This command is used for reading single devices. Max. 16 separated devices can be read
with a command. See the chapter 13.6 for accessible device type.

2) Request format ( External device ! PLC )

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

3) Response format ( PLC ! External device : ACK response )

Format Station Main Instruction Number of Length of Frame


Header Data Tail
name number instruction type blocks data check
Frame
ACK h20 R (r) SS h01 h02 hA9F3 … ETX BCC
example
ASCII
h06 h3230 h52 (h72) h5353 h3031 h3032 h41394633 h03
value

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.

Data type Length of data


Bit ( X ) 1
Word ( W ) 2

 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

4) Response format ( PLC ! External device : NAK response )

Format Station Main Instruction Error code


Header Tail Frame check
name number instruction type (Hex 2 byte)
Frame
NAK h20 R (r) SS h2232 ETX BCC
example
ASCII value h15 h3230 h52 (h72) h5353 h32323332 h03

 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 )

 Request format (External device ! PLC)


Length of Length of
Format Station Main Instruction Number Device Device
Header device device Tail
name number instruction type of blocks definition definition
definition definition
Frame
ENQ h01 R SS h02 h06 %PW000 h06 %MW020 EOT
example
ASCII h255057 h254D57
h05 h3031 h52 h5353 h3032 h3036 h3036 h04
value 303030 303230

 Response format (PLC ! External device : ACK response)


Format Station Main Instruction Number Length of Length of
Header Data Data Tail
name number instruction type of blocks data data
Frame
ACK h01 R SS h02 h02 h1234 h02 h3456 EXT
example
ASCII h3334
h06 h3031 h52 h5353 h3032 h3032 h31323334 h3032 h03
value 3536

 Response format (PLC ! External device : NAK response)


Format Station Main Instruction
Header Error code Tail
name number instruction type
Frame error code
NAK h01 R SS ETX
example (2 byte)
ASCII value
ASCII value h15 h3031 h52 h5353 h03
(4 byte)

13-10
Chapter 13 RS-232C function of K200S MASTER-K

13.7.2 Read continuous devices (RSB)


1) Introduction
This command is used for reading continuous devices by assigning start address and
word number. Only word data type is available for this command, and Max. 60 words can
be read with one command.

2) Request format (External device ! PLC)

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

3) Response frame (PLC ! External device : ACK response)

Format Station Main Instruction Number Frame


Header Data Tail
name number instruction type of data check
Frame
ACK h10 R (r) SB h04 h12345678 ETX BCC
example
ASCII
h06 h3130 h52 (h72) h5342 h3034 h3132333435363738 h03
value

 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.

Example : The number of data in request format = h02


The number of data in response format : 2 × 2 = h04

 In data area, the hexadecimal data is stored in ASCII code format.

4) Response format ( PLC ! External device : NAK response )

Format Station Main Instruction Error code


Header Tail Frame check
name number instruction type (Hex 2 byte)
Frame
NAK h10 R (r) SB h2232 ETX BCC
example
ASCII value h15 h3130 h52 (h72) h5342 h32323332 h03

 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.

 Request format (External device ! PLC)


Length of
Format Station Main Instruction Number of Frame
Header device Device definition Tail
name number instruction type data check
definition
Frame
ENQ h0A R (r) SB h06 %MW000 h02 EOT BCC
example
ASCII
h05 h3041 h52 (h72) h5342 h3036 h254D57303030 h3032 h04
value

 Response format (PLC ! External device : ACK response)


Format Station Main Instruction Number Frame
Header Data Tail
name number instruction type of data check
Frame
ACK h0A R (r) SB h04 h12345678 ETX BCC
example
ASCII
h06 h3041 h52 (h72) h5342 h3034 h3132333435363738 h03
value

 Response format (PLC ! External device : NAK response)


Format Station Main Instruction
Header Error code Tail Frame check
name number instruction type
Frame Error code
NAK h0A R (r) SB ETX BCC
example (2 byte)
ASCII value
ASCII value h15 h3041 h52 (h72) h5342 h03
(4 byte)

13-13
Chapter 13 RS-232C function of K200S MASTER-K

13.7.3 Write single device (WSS)


1) Introduction
This command is used for writing single devices. Max. 16 separated devices can be
written with a command.

2) Request format ( External device ! PLC )

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.

3) Response format ( PLC ! External device : ACK response )

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.

4) Response format ( PLC ! External device : NAK response )

Format Station Main Instruction Error code


Header Tail Frame check
name number instruction type (Hex 2 byte)
Frame
NAK h20 W (w) SS h2232 ETX BCC
example
ASCII value h15 h3230 h57 (h77) h5353 h32323332 h03

 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 )

 Request format (External device ! PLC)


Length of
Format Station Main Instruction Number Device
Header device Data Tail
name number instruction type of blocks definition
definition
Frame
ENQ h01 W SS h01 h06 %PW000 h1234 EOT
example
ASCII h255057
h05 h3031 h57 h5353 h3031 h3036 h31323334 h04
value 303030

 Response format (PLC ! External device : ACK response)


Format Station Main Instruction
Header Tail
name number instruction type
Frame
ACK h01 W SS EXT
example
ASCII
h06 h3031 h57 h5353 h03
value

 Response format (PLC ! External device : NAK response)


Format Station Main Instruction
Header Error code Tail
name number instruction type
Frame error code
NAK h01 W SS ETX
example (2 byte)
ASCII value
ASCII value h15 h3031 h57 h5353 h03
(4 byte)

13-16
Chapter 13 RS-232C function of K200S MASTER-K

13.7.4 Write continuous device (WSB)


1) Introduction
This command is used for writing continuous devices by assigning start address and word
number. Only word data type is available for this command, and Max. 120 words can be
written with one command.

2) Request format (External device ! PLC)


Length of
Format Station Main Instruction Device Number Frame
Header device Data Tail
name number instruction type definition of data check
definition
Frame
ENQ h10 W (w) SB h06 %MW100 h02 h11112222 EOT BCC
example
ASCII h254D57 h31313131
h05 h3130 h57 (h77) h5342 h3036 h3032 h04
value 313030 32323232

 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

3) Response format (PLC ! External device : ACK response)


Format
Header Station number Main instruction Instruction type Tail Frame check
name
Frame
ACK h10 W (w) SB EXT BCC
example
ASCII
h06 h3130 h57 (h77) h5342 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.

4) Response format (PLC ! External device : NAK response)


Format Station Main Instruction Error code
Header Tail Frame check
name number instruction type (Hex 2 byte)
Frame
NAK h20 W (w) SB h2232 ETX BCC
example
ASCII value h15 h3230 h57 (h77) h5342 h32323332 h03

 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)

 Request format (External device ! PLC)


Length of
Format Station Main Instruction Device Number
Header device Data Tail
name number instruction type definition of data
definition
Frame
ENQ h01 W SB h06 %MW100 h02 h11112222 EOT
example
ASCII h254D57 h31313131
h05 h3031 h57 h5342 h3036 h3032 h04
value 313030 32323232

 Response format (PLC ! External device : ACK response)


Format
Header Station number Main instruction Instruction type Tail
name
Frame
ACK h01 W SB EXT
example
ASCII
h06 h3031 h57 h5342 h03
value

 Response format (PLC ! External device : NAK response)


Format Station Main Instruction Error code
Header Tail
name number instruction type (Hex 2 byte)
Frame
NAK h01 W SB h2232 ETX
example
ASCII value h15 h3031 h57 h5342 h32323332 h03

13-19
Chapter 13 RS-232C function of K200S MASTER-K

13.7.5 Register monitoring number


1) Introduction
The monitoring number registration function is executed with the reading device
command (RSS, RSB). User can register maximum 10 monitoring numbers, and execute
registered monitoring number with the monitoring execution command.

2) Request format (External device ! PLC)


Format Station Main Registration Frame
Header Registration format Tail
name number instruction number check
Frame
ENQ h01 X (x) h06 EOT BCC
example
ASCII
h05 h3031 h58 (78) h3036 h04
value

 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)

b) Read continuous device


Main Instruction Length of device
Device definition Number of data
instruction type definition
R (r) SB h06 %MW100 h02
h52 (h72) h5342 h3036 h254D57313030 h3032

13-20
Chapter 13 RS-232C function of K200S MASTER-K

3) Response format (PLC ! External device : ACK response)


Format Station Main Registration
Header Tail Frame check
name number instruction number
Frame
ACK h01 X (x) h06 ETX BCC
example
ASCII
h06 h3031 h58 (78) h3036 h03
value

 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.

4) Response format (PLC ! External device : NAK response)


Format Station Main Registration
Header Error code Tail Frame check
name number instruction number
Frame
ACK h01 X (x) h06 h1132 ETX BCC
example
ASCII
h06 h3031 h58 (78) h3036 h31313332 h03
value

 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)

 Request format (External device ! PLC)


Registration format
Format Station Main Registration Length of Frame
Header Number Device Tail
name number instruction number Instruction device check
of blocks definition
definition
Frame
ENQ h01 X (x) h01 RSS h01 h07 %DW0000 EOT BCC
example
ASCII h4457
h05 h3031 h58 (78) h3031 h525353 h3031 h3037 h04
value 30303030

 Response format (PLC ! External device : ACK response)


Format Station Main Registration
Header Tail Frame check
name number instruction number
Frame
ACK h01 X (x) h01 ETX BCC
example
ASCII
h06 h3031 h58 (78) h3031 h03
value

 Response format (PLC ! External device : NAK response)


Format Station Main Registration
Header Error code Tail Frame check
name number instruction number
Frame
ACK h01 X (x) h01 h1132 ETX BCC
example
ASCII
h06 h3031 h58 (78) h3031 h31313332 h03
value

13-22
Chapter 13 RS-232C function of K200S MASTER-K

13.7.6 Execute monitoring


1) Introduction
This command used for executing the pre-registered monitoring number. When this
command is executed, the PLC returns the contents of devices that are registered with
monitoring number.

2) Request format (External device ! PLC)


Format Station Main Registration
Header Tail Frame check
name number instruction number
Frame
ENQ h01 Y (y) h01 EOT BCC
example
ASCII
h05 h3031 h59 (79) h3031 h04
value

 The registration number should be registered on PLC before executing monitoring.


 BCC : When the main instruction is small character (y), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.

3) Response format (PLC ! External device : ACK response)


There are two response formats according to the type of registered format (read single
device or read continuous devices).

 When registered format is reading single device


Format Station Main Registration Number Length of Frame
Header Data Tail
name number instruction number of blocks data check
Frame
ACK h01 Y (y) h01 h02 h02 h9183 ETX BCC
example
ASCII
h06 h3031 h59 (79) h3031 h3032 h3032 h39313833 h03
value

1 block
(Max. 16 blocks available)

 When registered format is reading continuous devices


Format Station Main Registration Length of Frame
Header Data Tail
name number instruction number data check
Frame
ACK h01 Y (y) h01 h04 h9183AABB ETX BCC
example
ASCII
h06 h3031 h59 (79) h3031 h3034 h3931383341414242 h03
value

13-23
Chapter 13 RS-232C function of K200S MASTER-K

4) Response format (PLC ! External device : NAK response)


Format Station Main Registration Frame
Header Error code Tail
name number instruction number check
Frame
ENQ h01 Y (y) h01 h1132 EOT BCC
example
ASCII
h05 h3031 h59 (79) h3031 h31313332 h04
value

 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)

 Request format (External device ! PLC)


Format Station Main Registration
Header Tail
name number instruction number
Frame
ENQ h01 Y h01 EOT
example
ASCII
h05 h3031 h59 h3031 h04
value

 Response format (PLC ! External device : ACK response)


Format Station Main Registration Number Length of
Header Data Tail
name number instruction number of blocks data
Frame
ACK h01 Y h01 h01 h02 h3202 ETX
example
ASCII
h06 h3031 h59 h3031 h3031 h3032 h33323032 h03
value

 Response format (PLC ! External device : NAK response)


Format Station Main Registration
Header Error code Tail
name number instruction number
Frame
ENQ h01 Y h01 h1132 EOT
example
ASCII
h05 h3031 h59 h3031 h31313332 h04
value

13-24
Chapter 13 RS-232C function of K200S MASTER-K

13.7.7 Read the status of PLC (RST)


1) Introduction
This command is used for reading the status of PLC such as operation status, error
information, etc.

2) Request format (External device ! PLC)


Format Main Instruction
Header Station number Tail Frame check
name instruction type
Frame
ENQ h01 R (r) ST EOT BCC
example
ASCII
h05 h3031 h52 (72) h5354 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.

3) Response format (PLC ! External device : ACK response)


Format Main Instruction Frame
Header Station number Status data Tail
name instruction type check
Frame
ACK h01 R (r) ST (Hex 20 bytes) ETX BCC
example
ASCII
h06 h3031 h52 (72) h5354 (ASCII code 40 bytes) h03
value

 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

[ Data configuration of status data ]

! 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

 O/S version : (Use only lower 8 bits)


Example) O/S version 1.2

1 2

bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0


0 0 0 1 0 0 1 0

 Key / Flash
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Not used Not used

0 : Flash memory is mounted


1: Flash memory is not mounted

0 : Mode key is on local mode


1: Mode key is on remote mode

 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

 Error code : Refer the chapter 12.5 ‘ Error code list’

13-26
Chapter 13 RS-232C function of K200S MASTER-K

4) Response format (PLC ! External device : NAK response)


Format Main Instruction Frame
Header Station number Error code Tail
name instruction type check
Frame
NAK h01 R (r) ST h1132 ETX BCC
example
ASCII
h15 h3031 h52 (72) h5354 h31313332 h03
value

 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)

 Request format (External device ! PLC)


Format Main Instruction
Header Station number Tail
name instruction type
Frame
ENQ h01 R ST EOT
example
ASCII
h05 h3031 h52 h5354 h04
value

 Response format (PLC ! External device : ACK response)


Format Main Instruction
Header Station number Status data Tail
name instruction type
Frame
ACK h01 R ST (Hex 20 bytes) ETX
example
ASCII
h06 h3031 h52 h5354 (ASCII code 40 bytes) h03
value

 Response format (PLC ! External device : NAK response)


Format Main Instruction
Header Station number Error code Tail
name instruction type
Frame
NAK h01 R ST h1132 ETX
example
ASCII
h15 h3031 h52 h5354 h31313332 h03
value

13-27
Chapter 13 RS-232C function of K200S MASTER-K

13.8 Error code list


The following table shows the error code list that PLC returns when NAK error occurs.

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

14RS-422/485 function of K200S................................................................ 14-1


14.1 Introduction .............................................................................................................14-1
14.2 Features....................................................................................................................14-1
14.3 Specification ............................................................................................................14-1
14.4 Wiring .......................................................................................................................14-2
14.4.1Wiring diagram of RS-422 network ......................................................................14-2
14.4.2Wiring diagram of RS-485 network ......................................................................14-2
14.5 Pin-out of RS-422/485 .............................................................................................14-3
14.6 Parameter setting ....................................................................................................14-4
14.6.1Basic parameter setting........................................................................................14-4
14.6.2High speed link parameter setting........................................................................14-5
14.7 Communication status flag ....................................................................................14-6
14.7.1Error code (D4400 ~ D4415)................................................................................14-6
14.7.2Error count (D4416 ~ D4431)...............................................................................14-6
14.7.3Error information of slave PLC (D4432 ~ D4447) ................................................14-7
14.7.4Error information of master PLC (D4448) ............................................................14-7
14.7.5Transmission period (D4449 ~ D4454) ................................................................14-8
14.8 Monitoring the communication status ..................................................................14-8
Chapter 14 RS-422/485C function of K200S MASTER-K

14 RS-422/485 function of K200S


This chapter will describe the built-in RS-422/485 communication function of K200S-B type. (A
and C type don’t support RS-422/485 communication)

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)

14.4.1 Wiring diagram of RS-422 network

RS- RS- RS- RS-

RDA RDA RDA RDA

RDB RDB RDB RDB

SDA SDA SDA SDA


SDB SDB SDB SDB

SG SG SG SG

FG FG FG FG

14.4.2 Wiring diagram of RS-485 network

RS- RS- RS- RS-

RDA RDA RDA RDA

RDB RDB RDB RDB

SDA SDA SDA SDA


SDB SDB SDB SDB

SG SG SG SG

FG FG FG FG

14-2
Chapter 14 RS-422/485C function of K200S MASTER-K

14.5 Pin-out of RS-422/485

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.6 Parameter setting

1) The CPU module should be K200S B type (K3P-07BS)


2) Set station number, baud rate, and etc. at the basic parameter setting window
3) Set parameters related to data access block at the high speed link setting window.
4) Download parameter to the CPU. Then, the communication is executed automatically.

14.6.1 Basic parameter setting

 Station number : Set the station number of PLC (0 ~ 31 is available)


 Baud rate : Set the transmit speed. ( 9600 ~ 128000 bps)
 Master / slave : Set the PLC as master or slave station. If the PLC is set as master
station, the communication type of high speed link 1 is fixed as RS-422/485.
 Time out : Set the time out value. The PLC will output an error if there is no response
during the setting time. Therefore, please consider the maximum send/receive time of
network when set the time out value. The default value is 50 (500msec).
 Read slave PLC state : Enable or disable the function to read the status of slave
stations.

14-4
Chapter 14 RS-422/485C function of K200S MASTER-K

14.6.2 High speed link parameter setting


1) The high speed link 1 is used for RS-422/485 communication.
2) Max. 64 data access blocks can be established, and remain block number as blank.
3) Data size can be set within 0 ~ 60 words, and do not set the period.
4) All device can be set as Tx or Rx device, but F area can not be Rx device.

1 2 3 4 5 6

 Number of data access block : Max. 64 blocks can be established.


 Station number : It can be set as 0 ~ 31.
 Unit(module) type : Set the communication direction. (send or receive)
 Tx Device : Set the source device. If the unit type is remote in, the Tx device is the
device of master station. Otherwise, it is the device of slave station.
 Rx Device : Set the destination device. If the unit type is remote in, the Rx device is
the device of slave station. Otherwise, it is the device of master station.
 Size : Set how many words will be transmitted. (range : 0 ~ 60)
 Link : Enable / disable the communication

14-5
Chapter 14 RS-422/485C function of K200S MASTER-K

14.7 Communication status flag

The D4400 ~ D4454 (55 words) are reserved for special register and they contain the error code,
error count, and error information.

14.7.1 Error code (D4400 ~ D4415)


The error code of all stations (32 stations) are stored in the D4400 ~ D4415 (16 words).
Each error code occupies 1 byte, and 1 word contains 2 error codes. See the chapter
13.8 for the detail information.

Station number Device Station number Device Remark


0, 1 D4400 16, 17 D4408
2, 3 D4401 18, 19 D4409
4, 5 D4402 20, 21 D4410 Odd number :
upper byte
6, 7 D4403 22, 23 D4411
8, 9 D4404 24, 25 D4412
Even number :
10, 11 D4405 26, 27 D4413 lower byte
12, 13 D4406 28, 29 D4414
14, 15 D4407 30, 31 D4415

14.7.2 Error count (D4416 ~ D4431)


The CPU has a error counter that counts how many times error occur in each station
number. The error count is stores at the special device (D area) as following table.

Station number Device Station number Device Remark


0, 1 D4416 16, 17 D4424
2, 3 D4417 18, 19 D4425
4, 5 D4418 20, 21 D4426 Odd number :
upper byte
6, 7 D4419 22, 23 D4427
8, 9 D4420 24, 25 D4428
Even number :
10, 11 D4421 26, 27 D4429 lower byte
12, 13 D4422 28, 29 D4430
14, 15 D4423 30, 31 D4431

14-6
Chapter 14 RS-422/485C function of K200S MASTER-K

14.7.3 Error information of slave PLC (D4432 ~ D4447)


The error information is stored in the special D area as following table.

Station number Device Station number Device Remark


0, 1 D4432 16, 17 D4440
2, 3 D4433 18, 19 D4441
4, 5 D4434 20, 21 D4442 Odd number :
upper byte
6, 7 D4435 22, 23 D4443
8, 9 D4436 24, 25 D4444
Even number :
10, 11 D4437 26, 27 D4445 lower byte
12, 13 D4438 28, 29 D4446
14, 15 D4439 30, 31 D4447

The error information

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

14.7.4 Error information of master PLC (D4448)

B15 B14 ….. B07 B06 B05 B04 B03 B02 B01 B0
…..

B00 : 0 = No error 1 = The CPU is not B type.


B01 : 0 = No error 1 = The master station number is duplicated with slave
station number
B02 : 0 = No error 1 = Out of memory area in the high speed link parameter
B03 ~ B15 Not used

14-7
Chapter 14 RS-422/485C function of K200S MASTER-K

14.7.5 Transmission period (D4449 ~ D4454)


The maximum, minimum, and previous period time of the first parameter setting is stored
in the D4449 ~ D4454. The period time means the interval from the start of previous
transmission to the start of current transmission.

Item Device area


Maximum D4449 ~ D4450
Minimum D4451 ~ D4452
Previous D4453 ~ D4454

14.8 Monitoring the communication status


User can monitor the RS-422/485 communication status with the high speed link 1 monitoring
window of KGL-WIN. (See the below figure) If the CPU type is not B type, the high speed link 1
monitoring window shows the Fnet high speed link information.

14-8
Chapter 15 The PID function of K200S

15The PID function of K200S...................................................................... 15-1


15.1 Introduction .............................................................................................................15-1
15.2 Control actions ........................................................................................................15-2
15.2.1Proportional operation (P operation) ....................................................................15-2
15.2.2Integral operation (I action) ..................................................................................15-4
15.2.3Derivative operation (D action).............................................................................15-6
15.2.4PID action.............................................................................................................15-7
15.2.5Forward / reverse action.......................................................................................15-8
15.2.6Reference value ...................................................................................................15-9
15.2.7Integral windup ...................................................................................................15-10
15.3 Realization of PID control on the PLC.................................................................15-13
15.3.1P control .............................................................................................................15-13
15.3.2I control...............................................................................................................15-13
15.3.3D control .............................................................................................................15-14
15.3.4Pseudo code of PID control ...............................................................................15-14
15.4 PID control instructions........................................................................................15-15
15.4.1PIDCAL ..............................................................................................................15-15
15.4.2PIDTUN (PID auto tuning)..................................................................................15-19
15.4.3Error code list .....................................................................................................15-21
15.5 Example of programming .....................................................................................15-23
15.5.1System configuration..........................................................................................15-23
15.5.2Initial setting .......................................................................................................15-23
15.5.3Program description ...........................................................................................15-24
15.5.4Example program for PIDCAL instruction ..........................................................15-25
15.5.5Example program for PIDCAL and PIDTUN instructions...................................15-26
Chapter 15 The PID function of K200S MASTER-K

15 The PID function of K200S


15.1 Introduction
This chapter provides information about the built-in PID (Proportional Integral Differential)
control function of K200S B and C type CPU module (K3P-07BS and K3P-07CS). The K200S
series does not have separated PID module like K300S and K1000S series, but the PID
function is integrated into the CPU module B and C type.

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).

The characteristics of the PID function of K200S is as following;


 the PID function is integrated into the CPU module. Therefore, all PID control action can be
performed with sequence program without any separated PID module.
 forward / reverse operations are available.
 P operation, PI operation, PID operation and On/Off operation can be selected easily.
 the manual output (the user-defined forced output) is available.
 by proper parameter setting, it can keep stable operation regardless of external disturbance.
 the operation scan time (the interval that PID controller gets a sampling data from actuator)
is changeable for optimizing the system characteristics.

15-1
Chapter 15 The PID function of K200S MASTER-K

15.2 Control actions

15.2.1 Proportional operation (P operation)


1) P action means a control action that obtain a manipulate value which is proportional to
the deviation (E: the difference between SV and PV)
2) The deviation (E) is obtained by multiplying a reference value to the actual difference
between SV and PV. It prevents the deviation value from a sudden change or alteration
caused by external disturbance. The formula of deviation is as following;

 =  × [ ×  −  ]

Kp : proportional constant (gain)


b : reference value
SV : set value
PV : present value

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

Fig. 15.1 The block diagram of PID control system

15-2
Chapter 15 The PID function of K200S MASTER-K

Fig. 15.2 When the proportional constant (Kp) is large

Fig. 15.3 When the proportional constant (Kp) is small

15-3
Chapter 15 The PID function of K200S MASTER-K

15.2.2 Integral operation (I action)


1) With integral operation, the manipulate value (MV) is increased or decreased
continuously in accordance time in order to eliminate the deviation between the SV and PV.
When the deviation is very small, the proportional operation can not produce a proper
manipulate value and an offset remains between PV and SV. In other hand, the integral
operation can eliminate the offset value even the deviation is very small.
2) The period of the time from when the deviation has occurred in I action to when the MV
of I action become that of P action is called integration time and represented as Ki.
3) Integral action when a constant deviation has occurred is shown as the following Fig.
15.4.

Fig. 15.4 The integral action with constant deviation


4) The expression of I action is as following;


 = 

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

15.2.3 Derivative operation (D action)

1) When a deviation occurs due to alteration of SV or external disturbances, D action


restrains the changes of the deviation by producing MV which is proportional with the change
velocity (a velocity whose deviation changes at a constant interval) in order to eliminate the
deviation.
 D action gives quick response to control action and has an effect to reduce swiftly the
deviation by applying a large control action (in the direction that the deviation will be
eliminated) at the earlier time that the deviation occurs.
 D action can prevent the large changes of control object due to external conditions.
2) The period of time from when the deviation has occurred to when the MV of D action
become the MV of P action is called derivative time and represented as Kd.
3) The D action when a constant deviation occurs is shown as Fig. 15.7.

Figure 15.7 Derivative action with a constant deviation

4) The expression of D action is as following ;



 =  ×

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

15.2.4 PID action

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.

Fig. 15.8 PID action with a constant deviation

15-7
Chapter 15 The PID function of K200S MASTER-K

15.2.5 Forward / reverse action

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.

Reverse action Forward action

Fig. 15.9 MV of forward / reverse action

3) The figure 2.10 shows examples of process control by forward and reverse actions,
respectively.

Fig. 15.10 PV of forward / reverse action

15-8
Chapter 15 The PID function of K200S MASTER-K

15.2.6 Reference value

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 deviation values of P, I, and D action is described as following equations;

 =  ×  − 
 =  − 
 = − 

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

Fig. 15.11 Diagram of simple feedback control system

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

15.2.7 Integral windup

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

Fig. 15.13 An example of integral windup

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

Fig. 15.14 The block diagram of anti-windup control system

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

15.3 Realization of PID control on the PLC

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;

  =  [ ×   −  ] n : sampling number


K : proportional gain constant
b : reference value
SV : set value
PV : present value

15.3.2 I control
The continuous formula of I control is as following;
 
∫
 
 =   I(t) : integral term

K : proportional gain constant


Ti : integral time
e(s) : deviation value
By deviation about t, we can obtain;
 
=  e = (SV – PV) : deviation value

The digitized formula is as following;


  +  −   
=    h : sampling period



  +  =   +   

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;

×  +  = − 


N : high frequency noise depression ration


y : the object to be controlled (PV)

The digitized formula is as following (Use Tustin approximation method)


 −    
  =   −  − [  −  − ]
 +   + 

15.3.4 Pseudo code of PID control


The pseudo code of PID control is as following;
Step 1 : Get constants that are used for PID operation

 =  × : integral gain

 × −  × 
 = : derivation gain
 × +  × 
 ×  ×  × 
 =
 × +  × 

 = : anti-windup gain

Step 2 : Read SV and PV value


PV = adin(ch1)
Step 3: Calculate the proportional term.
P = K × (b × SV – PV)
Step 4 : Update the derivative term. (initial value of D = 0)
D = As × D – Bd × (PV – PV_old)
Step 5 : Calculate the MV. (initial value of I = 0)
MV = P + I + D
Step 6 : Check the actuator is saturated or not.
U = sat(MV, U_low, U_high)
Step 7 : Output the MV value to the D/A module
Step 8 : Update the integral term.
I = I + bi × (SV – PV) + A0 × (U – MV)
Step 9 : Update the PV_old value.
PV_old = PV

15-14
Chapter 15 The PID function of K200S MASTER-K

15.4 PID control instructions

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

xxxx : The start address of PID operation area (37 words)

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.

No EN_P EN_I EN_D Control mode


1 1 0 0 P operation
2 1 1 0 PI operation
3 1 1 1 PID operation
4 0 0 0 On/off operation
0 : Disable 1 : Enable

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

15.4.2 PIDTUN (PID auto tuning)


The PIDAUT instruction is used for getting PID parameters automatically. It calculates
optimal K (proportional gain constant), Ti (Integral time constant), and Td (Derivative time
constant), and returns the result. It occupies 19 words for its execution, so make sure the
other instructions use those devices.

PIDTUN xxxx

xxxx : The start address of PID operation area (19 words)

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

1) S_TIME (Scan 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 PIDAUT 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-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.



 
   

 
  "
   !    !


 

Fig. 15.16 An example of auto-tuning PID parameters

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.4.3 Error code list


1) PIDCAL instruction

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)

h00 Normal operation


h01 SV is out of range Change the SV within 0 ~ 4000
h02 MVMAN is out of range Change the MVMAN within 0 ~ 4000
h03 P_GAIN is out of range Change the P_GAIN within 0 ~ 10000
h04 I_TIME is out of range Change the I_TIME within 0 ~ 20000
h05 D_TIME is out of range Change the D_TIME within 0 ~ 20000
h06 S_TIME is out of range Change the S_TIME within 0 ~ 100
h07 REF is out of range Change the REF within 0 ~ 10
h08 TT is out of range Change the TT within 0 ~ 1000
h09 N is out of range Change the N within 0 ~ 1000

Only P, PI, and PID controls are available


EN_I and/or EN_D is set with K3P-07BS and K3P-07CS. Please
h0A
as 1 when EN_P is 0 change the setting of EN_P, EN_I, and
EN_D by reference to the chapter 15.3.1.

Replace the CPU module with K3P-07BS


h28 CPU type is mismatched
(B type) or K3P-07CS (7 seven up).

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

 Bit 0 ~ Bit 6 : Not used


 Bit 7 : Done
Turns on when the auto-tuning operation is completed.
 Bit 8 ~ Bit 15 : Error code (See following table for details)

Error code
Description Countermeasure
(Upper byte)

h00 Normal operation


h01 SV is out of range Change the SV within 0 ~ 4000
It may caused by fault of A/D module.
h02 PV is out of range
Check the A/D module.
h03 S_TIME is out of range Change the S_TIME within 0 ~ 100

Replace the CPU module with K3P-07BS


h28 CPU type is mismatched
(B type) or K3P-07CS (C type).

15-22
Chapter 15 The PID function of K200S MASTER-K

15.5 Example of programming

15.5.1 System configuration

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)

Signal converter MV : DC4 ~ 20mA


(1 ~ 5V)
Temperature
sensor

Electric oven
(0 ~ 200°C)
heater

Power converter

15.5.2 Initial setting


1) PID operation parameters
 Auto / Manual operation setting : Auto
 Forward / Reverse operation : Forward
 SV setting : 1600 (100°C)
 BIAS setting : 0 (If only P control is used, input proper value
other 0)
 EN_P, EN_I, EN_D setting : EN_P=1, EN_I=1, EN_D=1 (PID operation)
 REF, TT, N : REF=10, TT=5-, N=1
 MV_MAX, MV_MIN, MVMAN : MV_MAX=4000, MC_MIN=0, MAMAN=2000
 S_TIME : S_TIME=100 (sampling time = 10 seconds)
2) Auto-tuning parameters
 PV setting : 1600 (100°C)
 S_TIME : S_TIME=100 (sampling time = 10 seconds)

15-23
Chapter 15 The PID function of K200S MASTER-K

3) A/D module setting


 Channel setting : use channel 0
 Output data type : – 48 ~ 4047
 Input processing : Sampling
4) D/A module setting
Channel setting : use channel 0

15.5.3 Program description

1) Use only PID operation (without auto-tuning function)


 Convert the measured temperature (0 ~ 250°C) to current signal (4 ~ 20mA), and
input the current signal to the channel 0 of A/D module. Then, the A/D module
converts the analog signal to digital value (0 ~ 4000)
 PIDCAL instruction will calculate manipulate value (MV : 0 ~ 4000) based on PID
parameter settings (P_GAIN, I_TIME, D_TIME, etc.) and PV from A/D module. Then,
the calculated MV is output to the channel 0 of D/A module.
 D/A module will convert the MV (0 ~ 4000) to analog signal (4 ~ 20mA) and output to
the actuator (power converter).

2) Use PID operation with auto-tuning function


 Convert the measured temperature (0 ~ 250°C) to current signal (4 ~ 20mA), and
input the current signal to the channel 0 of A/D module. Then, the A/D module
converts the analog signal to digital value (0 ~ 4000)
 The PIDTUN instruction will calculate manipulate value (MV : 0 ~ 4000) based on the
SV from user input and PV from A/D module. Simultaneously, the A/T module will
calculate P,I and D parameters.
 The bit 7 of STAT output of PIDTUN instruction will be 1 when the A/T operation is
completed. Then, PID module will start operation with PID parameters that are
calculated by PIDTUN instruction.
 D/A module will convert the MV (0 ~ 4000) to analog signal (4 ~ 20mA) and output to
the actuator (power converter).

15-24
Chapter 15 The PID function of K200S MASTER-K

15.5.4 Example program for PIDCAL instruction

15-25
Chapter 15 The PID function of K200S MASTER-K

15.5.5 Example program for PIDCAL and PIDTUN instructions

15-26
Chapter 15 The PID function of K200S MASTER-K

15-27
Chapter 16 Built-in high speed counter of K200S

16Built-in high speed counter of K200S.................................................... 16-1


16.1 Introduction .............................................................................................................16-1
16.2 Performance specifications ...................................................................................16-1
16.3 Input specifications.................................................................................................16-2
16.3.1Pin-out of input terminal .......................................................................................16-2
16.3.2Name of terminal ..................................................................................................16-2
16.3.3External interface circuit .......................................................................................16-3
16.4 Wiring .......................................................................................................................16-4
16.4.1Wiring instructions ................................................................................................16-4
16.4.2Wiring examples...................................................................................................16-4
16.5 HSC instruction .......................................................................................................16-5
16.5.1Introduction...........................................................................................................16-5
16.5.2Operation mode (D4999) .....................................................................................16-6
16.6 Example of program................................................................................................16-7
16.6.11-phase operation mode (D4999 = h1010) ..........................................................16-7
16.6.21-phase operation mode (D4999 = h1100) ..........................................................16-8
16.6.32-phase operation mode (D4999 = h2011) ..........................................................16-9
16.6.42-phase operation mode (D4999 = 2012) ..........................................................16-10
16.6.52-phase operation mode (D4999 = h2014) ........................................................ 16-11
Chapter 16 Built-in high speed counter of K200S MASTER-K

16 Built-in high speed counter of K200S


16.1 Introduction
This chapter describes the specification, handling, and programming of built-in high speed
counter of K200S C type CPU module (K3P-07CS). The built-in high speed counter of K3P-
07CS (Hereafter called HSC) has the following features;
1) 3 counter functions as followings
 1-phase up / down counter : Up / down is selected by user program
 1-phase up / down counter : Up / down is selected by external B phase input
 2-phase up / down counter : Up / down is automatically selected by the phase
difference between phase A and B.
2) Multiplication (1, 2, or 4) with 2-phase counter
2-phase pulse input multiplied by one : Counts the pulse at the leading edge of
phase A.
 2-phase pulse input multiplied by two : Counts the pulse at the leading / falling edge
of phase A.
 2-phase pulse input multiplied by four : Counts the pulse at the leading / falling edge
of phase A and B

16.2 Performance specifications

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

16.3 Input specifications

16.3.1 Pin-out of input terminal

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

16.3.2 Name of terminal

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

16.3.3 External interface circuit

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

Pulse B-phase ON 14 ~ 26.4 VDC


input 820Ω 2 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

16.4.1 Wiring instructions


A high speed pulse input is sensitive to the external noise and should be handled with
special care. When wiring the built-in high speed counter of K3P-07CS, take the following
precautions against wiring noise.

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.

16.4.2 Wiring examples


1) Voltage output pulse generator

24V
Pulse Generator

CHSC

COM

24VG

2) Open collector output pulse generator


24V

CHSC
Pulse Generator COM

24VG

16-4
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.5 HSC instruction

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.

1) EN input (Counter enable)


When the EN input turns on, the counter starts counting pulse. When the EN is off, the
counting is stopped and the current value of high speed counter is cleared as 0.
2) U/D input (Up/down)
When the U/D input is off, the high speed counter operates as up counter. When the U/D
is off, it operates as down-counter.
3) PR input (Preset)
When the PR input is on, the current value of high speed counted is replaced with the
preset value (PV).
4) Output relay (F070)
The F070 bit will be turn on when the current value of high speed counter is equal of
greater than the set value (SV).
5) Carry flag
The carry flag turns on when the current value of high speed counter is underflow ( 0 !
16,777,215 ) during down counting or overflow ( 16,777,215 ) during up counting.

16-5
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.5.2 Operation mode (D4999)

Input terminal Multipli-


Operation mode Description
A phase B phase Preset cation

Pulse U/D : Set by sequence program


h1000 – – –
input PR : Set by sequence program
Pulse Preset U/D : Set by sequence program
h1010 – –
1 input input PR : Set by preset input
phase Pulse U/D U/D : Set by U/D input
h1100 – –
input input PR : Set by sequence program
Pulse U/D Preset U/D : Set by U/D input
h1110 –
input input input PR : Set by preset input
A-phase B-phase PR : Set by sequence program
h2001 – 1
input input 1 multiplication
A-phase B-phase PR : Set by sequence program
h2002 – 2
input input 2 multiplication
A-phase B-phase PR : Set by sequence program
h2004 – 4
2 input input 4 multiplication
phase A-phase B-phase Preset PR : Set by preset input
h2011 1
input input input 1 multiplication
A-phase B-phase Preset PR : Set by preset input
h2012 2
input input input 2 multiplication
A-phase B-phase Preset PR : Set by preset input
h2014 4
input input input 4 multiplication

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

16.6 Example of program

16.6.1 1-phase operation mode (D4999 = h1010)


1) U/D : set by sequence program (M001)
2) PR : set by external PR input
3) Ladder diagram

MOV h1010 D4999

MOV 00100 D0000

MOV 01000 D0010

HSC
M000
EN
M001
U/D PV D0000
M002 PR SC D0010

4) Time chart

A-phase pulse input

U/D input (M001)

Current value of HSC 0 1 2 3 4 3 2 1

16-7
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.6.2 1-phase operation mode (D4999 = h1100)


1) U/D : set by external input (B-phase input)
2) PR : set by sequence program (M002)
3) Ladder diagram

MOV h1100 D4999

HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000

4) Time chart

A-phase pulse input

B-phase input (U/D)

PR input (M002)

Current value of HSC 10 09 08 09 10 11 100 101

16-8
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.6.3 2-phase operation mode (D4999 = h2011)


1) U/D : set automatically by the phase difference between A and B phase
2) PR : set by external PR input
3) Multiplication : 1
4) Ladder diagram

F012
MOV h2011 D4999

HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000

5) Time chart

A-phase pulse input

B-phase input (U/D)

Current value of HSC 10 11 12 13 14 13 12 11

16-9
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.6.4 2-phase operation mode (D4999 = 2012)


1) U/D : set automatically by the phase difference between A and B phase
2) PR : set by external PR input
3) Multiplication : 2 times
4) Ladder diagram

F012
MOV h2012 D4999

HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000

5) Time chart

A-phase pulse input

B-phase input (U/D)

Current value of HSC 10 11 12 13 14 15 16 17 18 17 16 15 14 13 12

16-10
Chapter 16 Built-in high speed counter of K200S MASTER-K

16.6.5 2-phase operation mode (D4999 = h2014)


1) U/D : set automatically by the phase difference between A and B phase
2) PR : set by external PR input
3) Multiplication : 4 times
4) Ladder diagram

F012
MOV h2014 D4999

HSC
M000
EN
M001
U/D PV 00100
M002 PR SC 01000

5) Time chart

A-phase pulse input

B-phase input (U/D)

Current value of HSC 10 12 14 16 18 20 22 24 25 23 21 19 17 15


11 13 15 17 19 21 23 25 24 22 20 18 16 14

16-11
Appendix

A. Flag list...................................................................................................... A-1


A.1 Special relay (F/M).................................................................................................... A-1
A.1.1 F relay.................................................................................................................... A-1
A.1.2 M relay................................................................................................................... A-3
A.2 Special data register (D area).................................................................................. A-4
A.2.1 Flags related to communication module ............................................................... A-4
A.2.2 Flags related to the high speed link ...................................................................... A-6
A.3 Link relay (L area)..................................................................................................... A-8
A.3.1 When Cnet module is mounted............................................................................. A-8
A.3.2 When the Fnet module is mounted ....................................................................... A-9
A.4 Dimension ............................................................................................................... A-10
A.4.1 CPU modules ...................................................................................................... A-10
A.4.2 I/O, special function modules ...............................................................................A-11
A.4.3 Power modules.................................................................................................... A-12
A.4.4 Main / expansion bases ...................................................................................... A-13
Appendix MASTER-K

A. Flag list

A.1 Special relay (F/M)

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.

F0102 User clock 2 DUTY F010x N1 N2


F0103 User clock 3
N2 scan Off
F0104 User clock 4
F0105 User clock 5
F0106 User clock 6 N1 scan Off
F0107 User clock 7
F0108 to F010fF Unused
Operation error
F0110 Turns on when an operation error has occurred.
flag
F0111 Zero flag Turns on when the operation result is “0”.
F0112 Carry flag Turns on when a carry occurs due to the operation.
F0113 All outputs off Turns on when an output instruction is executed.
Common RAM Turns on when a memory access error of the special module has
F0114
R/W error occurred.
Operation error
F0115 Turns on when an operation error has occurred.(Latch)
flag (Latch)
F0116 to F011F Unused

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

A.2 Special data register (D area)

A.2.1 Flags related to communication module


The following flags shows communication modules (Fnet/Cnet) mounted on the main
base. Use can monitor those flags with the flag monitor function of KGL-WIN or use in
sequence program.
The following table shows the flag list when the communication module is mounted on
slot 0.

x : K200S/K300S = 4, K1000S = 9

Keyword Address Name Description

Indicates the number which is set on


_CnSTNOL
Dx500 Communications communications module station switch.
_CnSTNOH
Dx502 module station No. Fnet : Station switch No. marked on the front of
communications module.
Increments by one whenever sending error of
Communications communications frame occurs.
_CnTXECNT Dx504
frame sending error Connection condition of network is evaluated
by this value.
Increments by one whenever receiving error of
Communications communications frame occurs.
_CnRXECNT Dx505
frame receiving error Connection condition of network is evaluated
by this value.
Increments by one whenever communications
Communications service fails. Connection condition of network
_CnSVCFCNT Dx506 service processing and overall communication quantity and
error program stability can be evaluated by this
value.
Indicates the maximum time that is spent until
Maximum
every station connected to network has the
_CnSCANMX Dx507 communications scan
token at least one time and sends a sending
time (unit : 1 ms)
frame.
Indicates the average time that is spent until
Average
every station connected to network has the
_CnSCANAV Dx508 communications scan
token at least one time and sends a sending
time (unit : 1 ms)
frame.
Indicates the minimum time that is spent until
Minimum
every station connected to network has the
_CnSCANMN Dx509 communications scan
token at least one time and sends a sending
time (unit : 1 ms)
frame.
Communications
Indicates operation state of communications
_CnLINF Dx510 module system
module with a word.
information
System error Indicates communications module hardware or
_CnCRDER Dx510.B
(error = 1) system O/S error.
Insufficient common Indicates that service cannot be offered due to
_CnSVBSY Dx510.C
RAM (Insufficient = 1) insufficient common RAM.
_CnIFERR Interface error Indicates that interface with communications
Dx510.D
(error = 1) modules has been stopped.

A-4
Appendix MASTER-K

(Continued)

Keyword Address Name Description

Indicates that the communications module can


_CnINRING Dx510.E In-ring (IN_RING = 1)
communicates with other station or not.
Indicates that operation mode of
Operation mode
_CnLNKMOD Dx510.F communications module is in the normal
(RUN=1)
operation mode or test mode.
Version No. of
_CnVERNO Dx680 communications O/S version No. of communications module
module
Numbers of remote Sets the remote I/O station number to the
_FSMn_ST_NO Dx690 I/O stations. (Write is upper 8 bits. (See REMARK given in the
enabled) below)
Remote I/O station Initializes special modules and I/O modules in
_fsmn_RESET Dx690.0
S/W reset the remote station defined by the FSMn_st_no.
Remote I/O station Clears the output of I/O modules in the remote
_fsmn_IO_RESET Dx690.1
digital output reset station defined by the FSMn_st_no.
If a momentary power failure occurs in the
remote I/O station, the operation mode bit of
Initialize the high
high speed link information turns off and link
_fsmn_IO_RESET Dx690.2 speed link information
trouble has the value 1. If the bit is turned on to
of remote I/O station
clear that bit, the operation mode bit turns on
and link trouble is cleared with 0.

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)

Slot No. & Flag List


Slot No. D area address Remark
1 Dx511 to Dx521 The address of the flag which is loaded onto the slot n is
2 Dx522 to Dx532 calculated as shown below.
3 Dx533 to Dx543 ∗ Address of D area = Address shown in the [TABLE1]
4 Dx544 to Dx554 + 11 × n, (where n = 1 to 7)
5 Dx555 to Dx565 Example) Address for the average communications scan time
6 Dx566 to Dx576 of the communications module loaded on the slot 6.

7 Dx577 to Dx587 → Dx508 + 11 × 6 = Dx574

A-5
Appendix MASTER-K

A.2.2 Flags related to the high speed link


The following table shows the flags when the m is 0.
x : K200S/300S = 4, K1000S = 9
m : the number of high speed link setting
Bit
Keyword Name Description
Address
Indicates that all stations are normally
operating complying with the parameter set in
the high speed link. This flag turns on under
the following conditions.
1. All stations set in the parameter are in the
RUN mode and have no error, and
High speed link
normal run 2. All blocks set in the parameter normally
_HSmRLINK Dx600.0 communicate, and
information(RUN_LIN
K) 3. The parameters set in all stations, which are
set in the parameter, normally communicate.

Once this flag is turned on, it maintains that


state as long as link disable does not make
that state stopped.
This flag turns on when, under the condition
that _HSmRLINK is turned on,
communications of the stations and data
blocks set in the parameter is under the
following conditions.
1. A station set in the parameter is not in the
High speed link RUN mode, or
_HSmLTRBL Dx600.1 trouble abnormal run
2. A station set in the parameter has an error,
information or
3. The communications of data blocks set in
the parameter does not normally operate.
This flag turns on if the above conditions 1), 2)
and 3) occur. If normal conditions are restored,
it will turn off again.
Overall Indicates overall communications state of
_HSmSTATE[k] Dx601.0 communications state every blocks of the parameters set.
to information of K Data
(k = 0 to 63) Dx604.15 Block set by the high _HSmSTATE[k] = _HSmMOD[k] &
link parameter _HSmTRX[k] & _HSmERR[k]

K Data Block setting


_HSmMOD[k] Dx605.0
stations mode Indicates the operation modes of stations set
to
(k = 0 to 63) information. (RUN = the K data block of parameters.
Dx608.15
1, others =-0)
K Data Block
_HSmTRX[k] Dx609.0 Indicates whether communications of the K
communications state
to data block of parameters are normally
(k = 0 to 63) information (Normal =
Dx612.15 operating as set .
1, abnormal = 0)
_HSmERR[k] K Data Block setting
Dx613.0
stations state Indicates whether the stations set in the K data
(k = 0 to 63) to
information. (Normal block of parameters have an error.
Dx616.15
= 1, abnormal = 0)

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.

The device number of flags when m is 1 ~ 3


High Speed Link Type D area Address Remark
High Speed Link 2
Dx620 to Dx633 Compared to the D area addresses shown in the [TABLE
(m=1)
3], where m = 0, they are calculated as shown below
High Speed Link 3 where m = 1 to 3.
Dx640 to Dx653
(m=2)
∗ Address of D area = Address shown in the [TABLE3]
High Speed Link 4
Dx660 to Dx673 + 11 × m, where n = 1 to 3
(m=3)

A-7
Appendix MASTER-K

A.3 Link relay (L area)

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.

A.3.1 When Cnet module is mounted


(When the Cnet module is mounted on the slot 0)

Slot Protocol Data receiving area


L0000 L0001 L000E L000F
st nd
….. th
(1 frame) (2 frame) (15 frame) (16th frame)
L0010 L0011 L001E L001F
th th
….. st
(17 frame) (18 frame) (31 frame) (32nd frame)
RS-232C
L0020 L0021 L002E L002F
rd th
….. th
(33 frame) (34 frame) (47 frame) (48th frame)
L0030 L0031 L003E L003F
th th
….. rd
(49 frame) (50 frame) (63 frame) (64th frame)
0
L0040 L0041 L004E L004F
st nd
….. th
(1 frame) (2 frame) (15 frame) (16th frame)
L0050 L0051 L005E L005F
th th
….. st
(17 frame) (18 frame) (31 frame) (32nd frame)
RS-422
L0060 L0061 L006E L006F
…..
(33rd frame) (34th frame) (47th frame) (48th frame)
L0070 L0071 L007E L007F
th th
….. rd
(49 frame) (50 frame) (63 frame) (64th frame)

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.

Link relay number of RS-232C : L = ( 80 × n ) + [ the hexadecimal value of (m –1) ]


Link relay number of RS-422 : L = ( 80 × n ) + [ the hexadecimal value of (m –1) ] + 40
where, n : slot number on which the Cnet module is mounted. ( 0 ~ 7 )
m : frame number ( 1 ~ 64 )

A-8
Appendix MASTER-K

A.3.2 When the Fnet module is mounted


x : slot number
n : station number of other station
Device number Key word Description
This flag indicates that the other station on network are
L0000 ~ L003F _NETx_LIV[n]
active or not. (read only)
This flag indicates turns on when the communication with
L0040 ~ L007F _NETx_RST[n]
a station is recovered from malfunction (read & write)

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

A.4.2 I/O, special function modules

 

K7X-310S K4Y-303S



110

38 35

90

A-11
Appendix MASTER-K

A.4.3 Power modules

 

A.1.2 K
A.1.1 K

MK200S

POWER

K3S - 302S
110

38 45

90

A-12
Appendix MASTER-K

A.4.4 Main / expansion bases

 

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

K7B-6ES 354 230 17


on

K4B-6ES 354 115 17


K7B-4ES 424 230 17 K4B-4ES 424 115 17


— 
C

B
E

 
      
      
      

A-13

You might also like