MASTER-K 120S series
 Safety Instructions
 Design Precautions
 Not doing so could cause a malfunction, failure or drop
Poor connection could cause an input or output failure
 Not doing so could result in erroneous operation
Such debris could cause fire, damage, or erroneous operation
 Doing so could cause electric shock or erroneous operation
Not doing so can cause a malfunction
Not doing so could cause poisonous pollution or explosion
 Revision History
 Contents
 Power Supply / CPU
Communication I/F Module ················· 4
 100
Input and Output Modules
Usage of Various Functions
104
 Installation and Wiring
Communication Function
 Maintenance
Troubleshooting
 General
Guide to Use This Manual
 Features
 FAM
Terminology
Kglwin
RTC
 Output Contact
 Expansion
Overall Configuration
Basic system
G7L-CUEB, G7L-CUEC
 MASTER-K120S
System Configuration Cnet I/F system
Communications system
MASTER-K120SMASTER-K120S
 RS-232C ⇔ RS-422 Converter
1n Communications system
MASTER-K120S G7L-CUEB
G7L-CUEC
 Main Unit
Product Functional Model
Product Functional Block
CPU
 Main Unit Standard type
Main Unit Economic type
 Expansion Modules
 General Specifications
General Specifications
 RUN LED
Main Unit
PWR LED
LED
 1 60-points main unit Standard
Name Description
 2 40-points main unit Standard
 3 30-points main unit Standard
 4 20-points main unit Standard
 5 30-points main unit Economic
 Names of Parts 6 20-points main unit Economic
7 14-points main unit Economic
8 10-points main unit Economic
 Expansion I/O Module
1 20points I/O Module
2 10points I/O Module
 Names of Parts 3 8points I/O Module
 Special Module
1 A/D·D/A Combination Module
 Names of Parts 2 D/A Conversion Module
G7F-DA2I
 Names of Parts Analog timer Module
RTD Input Module
 Communication I/F Module
Cnet I/F Module
Fnet I/F Module
 Option Module
Names of Parts Pnet I/F Module
DeviceNet I/F Module
 Economic Type
Power Supply Specifications
Standard Type
DR/DRT/DT60U
 D0000 ~ D4999 Data register Operation modes
CPU Specifications
Items Specifications Remarks
RUN, STOP, PAUSE, Debug
 Items Specifications
JOG
 Power Supply / CPU Economic Type
K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE
RUN, STOP, Pause
 Remarks Dedicated protocol support
Modbus protocol support RS-232C 1port Cnet I/F Function
User defined protocol support RS-485 1 port
 Operation Processing
Operation Processing Method
Cyclic operation
 Momentary power failure exceeding 10 ms
Operation Processing at Momentary Power Failure Occurrence
Momentary power failure within 10 ms
Interrupt operation method
 Setting range of watchdog 10 ~ 6,000msunit 10ms
Power Supply / CPU Scan Time
Scan Watchdog Timer
Expression for scan time
 Power Supply / CPU Timer Processing
On delay timer
Off delay timer
 Integral timer
Monostable timer
 Retriggerable timer
 Down counter CTD
Power Supply / CPU Counter Processing
Up counter CTU
Up-down counter
 OFF
Ring counter
Maximum counting speed
T1 + T2
 Program Execution Procedure
Program
Classifications of Program
 Interrupt program
Interrupt Programs
Scan program
Usage of interrupt program
 Parameter setting Time driven interrupt
Process driven interrupt
HSC driven interrupt
 Error Handling
Error Classification
Operation mode at error occurrence
 Power Supply / CPU
 Operation processing contents
RUN Mode
Processing when the operation mode is changed
Operation Modes
 Processing when the operation mode changes
Power Supply / CPU Stop mode
Pause mode
Debug modeStandard type only
 Debug operation conditions
Operation Mode Change
Operation mode change methods
Operation method
 Mode change Remote operation
 Functions
Self-diagnosis
 Power Supply / CPU 2 I/O Force On/Off function
Forced I/O setting method
 Power Supply / CPU
 Special data register for forced I/O
Force on/ off Processing timing and method
 Special data register for error history
Power Supply / CPU Direct I/O Operation function
System error history
Clear error data
 Memory Configuration
 I/O Address Allocation
O No. allocation method
 Structure
Built-in Cnet Selection Switch
ROM Mode
Usage
 Power Supply / CPU
 Installation connector
External Memory Module
Saving the user’s program on the external memory module
 Run the PLC with a program of external memory module
 Read RTC data from Kglwin
RTC Module
Read RTC data
Following message box will be displayed
 Number Date Sunday Monday Tuesday Wednesday Thursday
Write RTC data
Date expression
Saturday
 Input / Output Specifications
Input and Output Specification
Opening/shutting of electric current
 Circuit diagram
Digital Input Specification
Specification
Main unit
 Input wiring
DC24VDC24V
 PNP
Example of external devices
Current
Voltage
 Model Expansion Module Specification
Input and Output Specification Expansion Module
Specifications
It’s the same with the one for the main unit
 Digital Output Specification
Main unit Relay Output
K7M-DRT40U
 Economic type Model Main Unit Specifications
Circuit
Internal Circuit Relay
 AC110/220V
Output wiring
DC5V DC24V
DC24V DC24V
 P40,P41 24V Internal Circuit
Model Main Unit Specifications
K7M-DRT/DT20U K7M-DRT/DT30U K7M-DRT/DT40U K7M-DRT/DT60U
P42,P43 Internal Circuit 24V
 DC12V/24V
 It’s the same with the output circuit of the main unit
… …
AC110/220V DC5V/24V AC110/220V
 Model Expansion Module Specifications G7E-TR10A
DC12/24V
Refer to 7.2 ‘Special Functions’ for the special modules
 Built-in Functions
Performance Specifications
Input specification
High-speed counter function
 COM0
Names of wiring terminals
Input pulse Preset input
Input Common Input common terminal
 Wiring instructions
External interface circuit
 Voltage output pulse generator
Wiring example
Pulse Generator
Open collector output pulse generator
 High speed counter Available device
InstructionHSCST
Hscast
Flag Instruction
 Parameter Setting
 Usage of Various Functions
 Usage of Various Functions
 Usage of Various Functions
 Usage of Various Functions
 Usage of Various Functions
 Programming example
 Remark
 Usage
Using method
Usage of Various Functions Pulse Catch Function
Minimum input pulse width
 Remark
 Usage of Various Functions Input Filter Function
 Minimum processing time
External input signal Scan program
Usage of Various Functions External Interrupt Function
Function
 For the details , refer to Kglwin manual
 Introduction
Manipulation Value
 Kp is too large
 MV = KpTi Edt
 System response when a long integration time given
 MV = Kp ⋅ Td dEdt
 Example of integral windup
 PID8
Perform the auto tuning operation
Where, h sampling period
Perform the PID operation
 Usage of Various Functions
 ENP ENI END
 Usage of Various Functions
 DigitalOutput = Temp.⋅10 +
 Tse +1
 PID Control Instruction Available device
Instruction
PID8
Flag
 PID Auto Tuning Available device
PID8AT
 Program Example
KGL-WIN
TPR
 Usage of Various Functions
 Usage of Various Functions
 Usage of Various Functions
 Usage of Various Functions
 Error code list
 D4980
 G7F-ADHA G7F-ADHB
Performance specification
Usage of Various Functions 1 A/D·D/A Combination module
Voltage DC 0 ∼10V
 ① RUN LED
Names of parts and functions
Explain about names of parts and functions G7F-ADHA
Voltage Input Current Input
 Left voltage input
G7F-ADHB
Right current input
Analog output terminal Voltage output Current output
 4000
 Wiring
 O converstion characteristics
Analog input characteristics Voltage input
 Analog output characteristics Voltage output
 Program example
 Usage of Various Functions
 Usage of Various Functions 2 A/D Conversion module
Remark
 ① RUN LED
 Be sure to use two-core twisted shield wire
 Analog/Digital conversion characteristics
 Program example
 Program
 Usage of Various Functions 3 D/A Conversion module
G7F-DA2I G7F-DA2V
 ③ ①
 Parameter setting
 Scaling function
 Digital/Analog conversion characteristics
G7F-DA2I ~20mA output
 Program example
 Off DC 5V power off or the G7F-AT2A module fault
Usage of Various Functions Analog timer
Name Contents Indicate the operating status the G7F-AT2A
On normal operating
 Usage of Various Functions
 Name Contents
Explain about names of parts and functions
 BD bC bB BA b9 b8 b7 b6 B5 b4 b3 b2 B1 b0 D4880
Parameter setting Digital conversion value register
Error code D4880 ∼D4885
CH1 CH0
 4000 2000
Temperature conversion characteristics
Digital conversion value
6000
 Type Wire
No wiring Shield wire
Burn-out detection function
 Wire resistance ≤10 Ω
 P0040 ~ P004F
RTD input module
P0000
Main unit input contact P000 ~ P023
 Specification
Items Specification
Positioning FunctionDRT/DT type only
 Output SpecificationP40, P41
Names of wiring terminal
 Internal circuit and wiring example
COM1
 Usage of Various Functions Positioning function
Parameter setting
Setting Incremental End Single 000 100
Positioning function
 Speed Control Uniform Speed Operation
Please refer to the ‘7.3.4 Instruction’ for details
 Step No. can be assigned within 1 ~ Items of parameter
Operation pattern
Operation methods are as follows Remark
Absolute End Single
 Example End operation Speed
Operation Mode End Operation
Start command Posist
Absolute End Single 10,000 50,000 20,000 30,000 40,000
 Keep Operation
Absolute Keep Single 10,000 50,000 20,000 End 30,000 40,000
 Continuous Operation
Absolute Continuous Single 10,000 50,000 End 20,000
 Operation Method Repeat Operation
 Positioning start
Positioning stop
 Origin Detection when Approximate origin turns off
Return to OriginPOSORG Rising edge ↑
Origin return method
 This is the method using the approximate origin signal only
Origin Detection by approximate origin
 Speed Override CommandPOSSOR Rising edge ↑
JOG Operation Posjog Level input
 External Input Stroke High/Low Limit
Point
 Error and Output Prohibition
 Positioning parameter
 Backlash Compensation Amount
Bias Speed
Speed Limit
 Dwell Time
Origin return parameter
② Origin return-Low speed
DOG
 Positioning parameter
 Operation Mode is divided into following three kinds
 Usage of Various Functions
 Posist
Usage of Various Functions Instructions
Positioning Indirect startPOSIST
Positioning Indirect Start Instruction Available device
 JOG OperationPOSJOG
Positioning Indirect Start Available device Instruction
 Positioning Control InstructionPOSCTR
Posctr
Control instruction designation
 Preset value designation
Current position preset Posprs
Current position preset Instruction Available device
Posprs
 PWM output PWM
PWM
SV1 SV2
 Speed control operation Posvel
Posvel
Speed control operation Instruction Available device
 Speed override instruction Instruction Available device
Speed override Possor
Possor
Ch. for speed override0~1 SV Speed 5 ~ 100,000pps
 Positioning direct startPOSDST
Posdst
 Return to originPOSORG
Posorg
Return to origin Instruction Available device
 Usage of Various Functions Flag list and Error codes
Flag list
Device Function Description
 101
 Error code
Error Condition
Corrective action Code
 103
H48
 Wiring with stepping motor driverDC
Wiring with stepping motor driver DC
 Wiring with servo motor driverMR-J2/J2S-A
K7M-DRT**U
 Wiring with Servo motor driverFDA-5000 AC Servo Driver
SSR
 Dedicated Protocol Communication
Communication Functions
Introduction
 Communication Functions System configuration method
Connecting system configuration link between MASTER-K’s
 Pmulgis
PMU
 Pin assignment and direction Pin no Signal
 Communication Functions Frame Structure
Base Format
 Sequence of command frame
EOT BCC
ETX BCC
 Communication Functions List of commands
 Communication Functions Data type
PX000, %MX000, %LX000, %KX000, %CX000, %TX000, %FX000 Byte
 Communication Functions Execution of commands
Individual reading of deviceRrSS
 Response format ACK response
 Response format NAK response
 Continuous readingRrSB of device
 Wordw
 EOT
 Blocksetting can be repeated up to max blocks Explanation
Individual writing of deviceWwSS
 NAK
 H00FF EOT BCC
 Continuous writing of deviceWwSB
 H10
 Format name Header Station
 Blockmax blocks ② Continuous reading of device
Monitor registerX##
RSS
RSB
 H06 H3130 H5878 H3039 H03
 RSS
 Monitor executionY##
 Command Registration Error code Tail
 Mode Bit Local Remote Connection
Reading PLC StatusRST
Pause Debug
 3041 5272 5354 31313332
 G7E-DR10A
 Parameter setting
 Cuec
 Communication Functions
 Flag related with operating status
 Normal
RUN Pause Debug
 Example
 Protocol Mode
④ Set parameters as the following table Communication Method
 Communication Functions
 Communication Functions
 Communication Functions Error code
Error code Error type Error condition and causes Treatment
 Parameter Setting
Setting Communications Parameter
User Defined Protocol Communication
 Setting frame
VTH0B
 Communication Functions
 FFH0C CRH0D SOH0E
 SUM
XOR
MUL
 Communication Functions
 Ascii Type Hex Type 05 31 32 33 34 04 30
Type setting
Kinds Value of sum check Last transmitting frame
Ascii Type Hex Type 05 31 32 33 34 04 36
 Communication Functions
 Example of program
Communication Functions Instruction
User defined communication instructionSNDCOM
Sndcom
 Example of Usage
 Communication Functions
 Communication Functions
 Communication Functions
 Setting and program of slave station
 Communication Functions
 Communication Functions
 Communication Functions
 Communication Functions
 RTU mode
Basic Specification
Ascii mode
Modbus Protocol Communication
 Data area
Address area
Function code area
LRC Check/CRC Check area
 Modbus addressing rules
Size of using data
Function code types and memory mapping
H5000 Area Areacurrent value area H6000
 Parameters Setting
Map of wiring
Setting communication parameter
 PLC
 Communication Functions Instruction and example
Modbus communication instructionMODCOM
Modcom
 Remark
 Example program
Coil Status
 Input
 Communication Functions
 No Protocol Communication
Sending Data
Receiving Data
 Parameter setting
 No protocol receiveDRCV
Error flag turns on, when designating area is over
Communication Functions Instructions
Drcv
 No protocol sendDSND
Dsnd
 Communication Functions Examples
 Communication Parameter Setting
Program
 Remote connection and communication I/F module
Remote connection
Remote connection by built-in Cnet I/F
 Remote connection by modem
 Remote connection by Fnet I/F module
 Usage of G7L-CUEC
Master Slave Wiring Example RS-422 I/F
Usage of G7L-CUEB
OFF Must be off
 RDB SDA SDB SG
Wiring Example RS-485 I/F
Usage of G7L-FUEA/RUEA
Master Slave
 Usage of G7L-PBEA/DBEA
 Precautions during installing
Installation
Installation Environment
Environment requirements
 Power Input Supply
Power consumption block diagram of PLC systems
Power consumption of each part
Part
 Handling Instructions
Main unit or Expansion Module handling instructions
 Output part
Mounting instructions
OUT
COM OUT
 100mm or more
Heat generating device
 Installation and Wiring Connection of expansion module
 Power Main circuit Device
Wiring
Power Supply Wiring
※ T1,T2 constant voltage transformer
 Input and Output Devices Wiring
Input
 Installation and Wiring Grounding
Cable Specifications for wiring
 Maintenance and Inspection
Daily Inspection
LED ERR LED
 Periodic Inspection
10-2
 Basic Procedures of Troubleshooting
Troubleshooting
 Yes
 Kglwin
 Turn the power unit off and on Is RUN LED off?
Contact the nearest service center
11-4
 Measure the voltage of power supply in P40
11-5
 11-6
 11-7
 Troubleshooting Questionnaire
 Troubleshooting Examples
Input circuit troubles and corrective actions
 Output circuit troubles and corrective actions
11-10
 Surge current of 10 times or more when turned on
Transistor 1/3 to 1/5 rated current flow Destroyed
11-11
 Error code List
11-12
 Error CPU state Message Cause Corrective Actions Code
11-13
 Appendix 1 System Definitions
Option
 Editor option
 Appendix 1 System Definitions
 Basic Parameters
 Appendix 2 Flag List
Special relay F
Always Off
 Overflow error flag
Operation error flag
Operation error flag Latch
Relay Function F0040 to F005F
 Internal relay M
 Data relay D
App2-4
 App2-5
 App2-6
 App2-7
 Clock data Relay Description
App2-8
 Appendix 3 External Dimensions
Extension module
Standard type 95 105 App3-1
 Appendix 3 External Dimensions