Mlu Dn32hp Manual2
Mlu Dn32hp Manual2
MasterLogic-50
MLU-DN32HP
10-23-421-19-EN
Jan 2019
Warranty/Remedy
Honeywell warrants goods of its manufacture as being free of defective materials and faulty
workmanship. Contact your local sales office for warranty information. If warranted goods are
returned to Honeywell during the period of coverage, Honeywell will repair or replace without
charge those items it finds defective. The foregoing is Buyer's sole remedy and is in lieu of all
other warranties, expressed or implied, including those of merchantability and
fitness for a particular purpose. Specifications may change without notice. The information
we supply is believed to be accurate and reliable as of this printing. However, we assume no
responsibility for its use.
While we provide application assistance personally, through our literature and the Honeywell
web site, it is up to the customer to determine the suitability of the product in the application.
For your safety and effective operation, please read the safety instructions thoroughly before using the
product.
► Safety Instructions should always be observed in order to prevent accident or risk with the safe and
proper use the product.
► Instructions are separated into “Warning” and “Caution”, and the meaning of the terms is as follows;
► The marks displayed on the product and in the user’s manual have the following meanings.
► The user’s manual even after read shall be kept available and accessible to any user of the product.
Safety Instructions when designing
Warning
Never connect the overload than rated to the output module nor allow the output
allow the output circuit to have a short circuit, which may cause a fire.
Never let the external power of the output circuit be designed to be on earlier
than PLC power, which may cause abnormal output or operation.
Caution
I/O signal or communication line shall be wired at least 100mm away from
a high-voltage cable or power line. If not, it may cause abnormal output or operation.
Caution
Use PLC only in the environment specified in PLC manual or general standard
of data sheet. If not, electric shock, fire, abnormal operation of the product or flames
may be caused.
Before installing the module, be sure PLC power is off. If not, electric shock or
damage on the product may be caused.
Be sure that each module of PLC is correctly secured. If the product is installed
loosely or incorrectly, abnormal operation, error or dropping may be caused.
Don’t let any metallic foreign materials inside the product, which may cause
electric shock, fire or abnormal operation.
Safety Instructions when wiring
Warning
Prior to wiring, be sure that power of PLC and external power is turned off. If not,
electric shock or damage on the product may be caused.
Before PLC system is powered on, be sure that all the covers of the terminal are
securely closed. If not, electric shock may be caused.
Caution
Let the wiring installed correctly after checking the voltage rated of each product
and the arrangement of terminals. If not, fire, electric shock or abnormal operation
may be caused.
Secure the screws of terminals tightly with specified torque when wiring. If the
screws of terminals get loose, short circuit, fire or abnormal operation may be caused.
*
Surely use the ground wire of Class 3 for FG terminals, which is exclusively
used for PLC. If the terminals not grounded correctly, abnormal operation may be
caused.
Don’t let any foreign materials such as wiring waste inside the module while
wiring, which may cause fire, damage on the product or abnormal operation.
Safety Instructions for test-operation or repair
Warning
Don’t touch the terminal when powered. Electric shock or abnormal operation may
occur.
Prior to cleaning or tightening the terminal screws, let all the external power off
including PLC power. If not, electric shock or abnormal operation may occur.
Don’t let the battery recharged, disassembled, heated, short or soldered. Heat,
explosion or ignition may cause injuries or fire.
Caution
Don’t remove PCB from the module case nor remodel the module. Fire, electric
shock or abnormal operation may occur.
Keep any wireless installations or cell phone at least 30cm away from PLC. If not,
abnormal operation may be caused.
Caution
Product or battery waste shall be processed as industrial waste. The waste may
discharge toxic materials or explode itself.
About User’s Manual
Congratulations on purchasing PLC of Honeywell.
Before use, make sure to carefully read and understand the User’s Manual about the functions, performances, installation and
programming of the product you purchased in order for correct use and importantly, let the end user and maintenance
administrator to be provided with the User’s Manual.
The User’s Manual describes the product. If necessary, you may refer to the following description and order accordingly. In
addition, you may connect our website(http://www.honeywellprocess.com/) and download the information as a PDF file.
Revision History
Version Date Remark Part Page
※ The number of User’s manual is indicated the right side of the back cover.
◎ Contents ◎
1: System
7.1 System Composition and Setting of Input and Output ............................................ 7-1
7.2 Dedicated Commands ........................................................................................... 7-7
7.3 Use of Dedicated Command ................................................................................ 7-63
4: Communication
Appendix
Part 1. System
Chapter 1 Introduction
1.1 Guide to this Manual
This manual includes specifications, functions and handling instructions for ML50 series PLC. This manual is divided up into
chapters as follows
No. Title Contents
Describes configuration of this manual, unit’s features and
Chapter 1 Introduction
terminology.
Describes available units and system configuration in the
Chapter 2 System Configurations
ML50 series.
Describes general specifications of units used in the
Chapter 3 Specifications
ML50 series.
1.System
Chapter 4 Built-in High-speed Counter Function Describes built-in high-speed counter functions.
1.2 Features
The features of ML50 system are as follows.
(4) Permanent data back up : permanent data back up is available by implementing MRAM.
(1) Program modularize for Multi-programing and multi tasks for maintenance are available.
(2) Built-in RTC(real time clock) function make it possible to control schedule maintenance and history.
(3) Integrated program environment
-Separated SoftMaster(ladder programming, parameter setting, monitoring ) and SM-NM(communication and
network parameter setting, frame monitoring) have combined in one SoftMaster. It is possible to control PLC in
one programming.
1.3 Terminology
1.3.1 General term
The following table gives definition of terms used in this manual.
Terms Definition Remark
Example)
Expansion
A standard element that has a specified function which configures
module,
Module the system. Devices such as I/O board, which inserted onto the
Specialmodule,
mother board.
Communication
module
Example)
A single module or group of modules that perform an independent
Unit Main unit,
operation as a part of PLC systems.
Expansion unit
A system which consists of the PLC and peripheral devices.
PLC System -
A user program can control the system.
Z: Input
Sink Input
impedance
Current flows from the PLC input terminal to the switch after a input signal
turns on.
Z: Input
Source Input
impedance
Current flows from the load to the output terminal and the PLC output
turn on.
Sink Output -
Current flows from the output terminal to the load and the PLC output
turn on.
Source Output -
7 6 5 4 3 2 1 0
0 1 0 0 1 1 0 1
TX
송신 RX
수신
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
0 1 0 0 1 1 0 1
1
송신
TX 수신
RX
0
P S P S P S P S P S P S P S
S A E T
S A T
S A T
S A T
S A T
S A T
S A E T
T R O T R T R T R T R T R T R N
O I
T T
A
R
O I
T
A A
R
O I
T
E A
R
O I
T
R A
R
O I
T
O A
R
O I
T
K A
R
O I
T Q
A
R
P P P P P P P
Y
(04H)
T Y T Y T Y T Y T Y T Y
(05H)
T
(4) Protocol
This is communication rule established in relation between the transmission side and the receiving side of information in
order to send and accept information between two computers/terminals or more without error, effectively, and reliably. In
general, this specifies call establishment, connection, structure of message exchange form, re-transmission of error
message, procedure of line inversion, and character synchronization between terminals, etc.
(6) Node
Node is a term that means the connected nodes of the data in the network tree structure, generally network is composed
of a great number of nodes, and is also expressed as the station number.
(7) Packet
Packet, a compound term of package and bucket used for packet exchange type to send information as divided in a unit
of packet, separates transferred data into the defined length to add a header that presents the correspondent addresses
(station No., etc.) thereto.
(8) Port
Port is meant to be the part of the data process device which sends or receives the data from a remote control terminal in
data communications, but in Cnet serial communication is meant to be the RS-232C or RS-422 port.
(9) RS-232C
RS-232C is the interface to link a modem with a terminal and to link a modem with a computer, and is also the serial
communications specification established by EIA according to the recommendations of the CCITT. This is also used to
link the null modem directly as well as the modem linkage. The disadvantage is that the transfer length is short and that
only 1 : 1 communication is available, and the specifications which have overcome this disadvantage are RS-422 and
RS-485.
(10) RS-422/RS-485
As one of the serial transmission specifications, its transferring length is long with 1 : N connection available compared to
RS-232C. The difference of these two specifications is that RS-422 uses 4 signals of TX(+), TX(-), RX(+) and RX(-),
while RS-485 has 2 signals of (+) & (-), where data is sent and received through the same signal line. Accordingly,
RS-422 executes the full-duplex type of communication and RS-485 executes the half-duplex type of communication.
Client
RX TX
RX TX RX TX RX TX RX TX
Server Server Server Server
Client
RX TX
RX TX RX TX RX TX RX TX
Server Server Server Server
(15) Frame
Frame is composed of transmitted and received data as in a specified form in data communication including additional
information of segments [station No., command, parameter by command], control characters [ENQ, ACK, EOT, ETX] for
synchronization, parity for detecting error, and BCC. The structure of frame used for serial communication of Cnet is as
follows.
Request Frame
Response Frame
(16) Reset
This function is used to initialize the communication module with errors.
Use SM-NM to select [On-Line] → [Reset] so to execute Reset, which will restart PLC.
This chapter describes about the general terminology of FEnet I/F module. For more detail, refer to professional book on the
Ethernet
(3) Bridge
A device used to connect two networks so to be operated as one network. Bridge is used not only to connect two
different types of networks but also to divide one big network into two small networks in order to increase the
performance
(4) Client
A user of the network service, or a computer or program (mainly the one requesting services) using other
computer’s resource.
(9) Ethernet
A representative LAN connection system (IEEE 802.3) developed by Xerox, Intel and DEC of America which can
send about 10Mbps and use the packet of 1.5kB. Since Ethernet can allow various types of computers to be
connected as one via the network, it has been called a pronoun of LAN as a universal standard with various
products available, not limited to some specific companies.
(11) Gateway
Software/Hardware used to translate for two different protocols to work together, which is equivalent to the
gateway necessary to exchange information with the different system.
(12) Header
Part of the packet including self station number, correspondent station number and error checking area.
(13) HTML
Hypertext Markup Language, standard language of WWW. In other words, it is a language system to prepare
Hypertext documents. The document made of HTML can be viewed through the web browser
(14) HTTP
Hypertext Transfer Protocol, standard protocol of WWW. It is a protocol supporting the hypermedia system.
(17) IP Address
Address of respective computers on the Internet made of figures binary of 32 bits (4 bytes) to distinguish the
applicable machine on the Internet. Classified into 2 sections, network distinguishing address and host
distinguishing address. The network address and the host address is respectively divided into class A, B and C
based on the bits allotted. IP address since it shall be unique all over the world, shall be decided not optionally but
as assigned by NIC(Network Information Center) of the applicable district when joining the Internet. In Korea,
KRNIC(Korea Network Information Center) is in charge of this work. Ex.) 165.244.149.190
(21) Node
Each computer connected with the network is called Node
(22) Packet
A package of data which is the basic unit used to send through the network. Usually the package is made of
several tens or hundreds of bytes with the header attached in front to which its destination and other necessary
information are added
(25) Protocol
Contains regulations related with mutual information transmission method between computers connected with each
other through the network. The protocol may specify detailed interface between machines in Low level (for example,
which bit/byte should go out through the line) or high level of message exchange regulations as files are
transferred through the Internet.
(26) Router
A device used to transfer the data packet between the networks. It sends the data packet to its final destination,
waits if the network is congested, or decides which LAN is good to connect to at the LAN junction. Namely, it is a
special computer/software used to control the two or more networks connected.
(27) Server
The side which passively responds to the client’s request and shares its resources.
(30) Telnet
It means remote login via Internet. To login to remote host via TELNET, account of that host is necessary.
But for some hosts providing public service, you can connect without account
Token passing
Token
Ring
(33) Auto-Negotiation
Fast Ethernet is that Ethernet exchanges information like operation speed, duplex mode.
1. Detect disconnection
2. Decide the specification of network device
3. Change connection speed
(35) Reset
This is function used when you want to initialize the communication module to clear the error
Select [Online] [Rest] in the SM-NM
If you execute this function, PLC will restart.
-
Communication
Notice
For new products that are not included to this manual, please contact a nearby exclusive agency.
DC input
AC input
Main unit
MLU-DN32HP 16 point None 16 point
MLC-DR32H 16 point 16 point None
MLC-DN32H 16 point None 16 point AC110V-220V
MLC-DR64H 32 point 32 point None
MLC-DN64H 32 point None 32 point
M L E - DC XX A
Relay output(RY)
Transistor output (TN/TP)
I/O expansion module(E)
Digital input (DC)
Expansion special module(F)
Digital input+ sink type transistor output (DN)
Expansion communication
Digital input+ source type transistor output (DP)
module(L)
Digital input+ Relay output (DR)
Option module(O)
M L F - AD XX A
No. of IO point
M L L - C21A
Items Description
• MLC-DN32H : 32 points~256 points
Number of I/O configuration points
• MLC-DN32HP : 32 points~256 points
Digital I/O
• Up to 7 EA
module
Number of
Special module • Up to 7 EA
accessible
Communication module • Up to 2 EA
expansion
High speed expansion
modules • Up to 2 EA (Can be expanded for 2 slots just behind the basic unit)
module
Option module • Cannot be installed.
Main • MLM-DN16S • MLM-DR16S • MLM-DN32S
MLM/MLC/MLU series
Unit • MLU-DN32H2 • MLU-DN32HP
•MLE-DC08/16/32A •MLE-TN08/16/32A •MLE-RY08/16A
Digital I/O
•MLE-DC16B • MLE-TP08/16/32A •MLE-RY08B
module
• MLE-DR16A • MLE-DN32A
Configuration of products
- The existing ML50 expansion· communication· special modules can be commonly used and the high speed
expansion I/F module that cannot be supported by the ML50 basic unit are available.
- In the case of expansion communication modules, a total of 4 expansion communication modules can be
mounted in the order of installation; 2EA of high speed I/F communication modules, 2EA of the existing
communication I/F modules.
- In the case of the high speed expansion module, it acts as the high speed expansion I/O only when it is
installed in 1-stage or 2-stage.
- When more than two high speed expansion modules are installed, only the modules mounted in 1-stage, 2-
stage act as the high speed I/F; for the modules mounted in 3-stage or more, they work equally to the existing
expansion modules or do not work depending on the corresponding modules.
- The high speed expansion I/F modules cannot be installed behind the normal expansion modules. Accordingly,
when using the high speed expansion modules and the existing normal expansion modules by mixture, the
existing ones should be installed behind the high speed ones.
- The below table represents the example of the system configuration using the high speed expansion modules
and the existing normal expansion modules.
(◎ : High speed expansion communication modules, ○: Existing communication modules,
◈ : High speed expansion special, I/O modules, ◇ : Existing special, I/O modules)
Expansion modules
Basic Unit Definitions of Operations Remarks
1-stage 2-stage 3-stage 4-stage 5-stage
1,2-stage : Using the high speed I/F, 3~5- 3 communication
◎ ◎ ◈ ○ ◇
stage : Using the existing I/F modules works
1,2-stage : Using the high speed I/F, 3~5- 4 communication
◎ ◎ ○ ○ ◇
stage : Using the existing I/F modules works
1-stage : Using the high speed I/F, 2~5- 2 communication
◈ ○ ○ ◇ ◇
stage : Using the existing I/F modules works
MLU ‘HP’ Type ◇ ◎ ◈ ◇ ◇ System Configuration is impossible.
(The high speed expansion modules
◈ ◎ ◇ ◈ ◇ cannot be applied to the further stage of
the existing expansion modules)
1,2 -stage : Using the high speed I/F, 3 communication
◎ ◎ ◎ ◇ ◇
3~5-stage : Using the existing I/F modules works
Using 10-stage of the existing expansion
◇ ◇ ◇ ◇ ◇
modules
2 communication
◎ ◎ ◇ ◇ ◇
modules works
1~5-stage: Operated by the existing I/F
2 communication
◎ ◎ ◈ ◇ ◇
modules works
System Configuration is impossible. (The
Existing ML50 ◎ ◎ ○ ◇ ◇ number of communication modules is
exceeded)
System Configuration is impossible. (The
high speed expansion modules cannot
○ ◈ ◈ ◇ ◇
be applied to the further stage of the
existing expansion modules)
(2) Communication with the other PLC through the basic unit’s embedded RS-485 port/ 1:1 connection with the HMI
through the embedded RS-232C port
(3) Configuring 1:N communication system with the maximum 32 stations by using the basic unit’s embedded RS-
485port
Notice
For detailed specificaitons of the embedded Snet communication, refer to Part4 Communication in this manual.
For detailed specificaitons of the expansion Snet communication module, refer to “ML50 Snet I/F” manual.
Notice
For more details on how to the above network system configuration and Enet system configuration, refer to Chap.5
Embedded Communication and “ML50 FEnet I/F ” of this manual.
Chapter 3 Specifications
3.1 Names and Functions of Each Part
No Names Purposes
① LED for displaying input, output ■ Displays the On/Off status of input, output contacts
② Input connector ■ Terminal block receiving the actual input signal
③ Output connector ■ Terminal block outputting the actual output signal
Built-in serial communication
④ ■ Built-in RS-232C/485 connecting connector
connecting connector
Built-in ethernet
⑤ ■ Built-in Enet connecting connector
connecting connector
⑥ PADT connecting connector ■ PADT connecting connector
■ Sets the basic unit’s operation mode.
• STOP → RUN : Program’s operation is executed.
⑦ RUN/STOP mode switch
• RUN → STOP : Program’s operation is stopped.
(In case of STOP, the remote operation is available.)
■ Displays the basic unit’s operation status.
• PWR(Red light On) : The power is supplied.
⑧ Status display LED
• RUN(Green light On) : During RUN mode
• ERR(Flickering red light) : Occurrence of errors during operation
③ ②
No Names Purposes
① Power terminal ■ Power supply terminal (DC24V)
② Expansion module hook ■ Fix hook when installing extension module
■ Terminating resistance selector switch for built-in RS-485
Terminating resistance selector
③ • Switch 2ea On : Use of Terminating resistance
switch
• Switch 2ea Off : Not use of Terminating resistance
Notes
Notice
Calculate the consumption current and configure the system not to exceed the output current capacity of main unit.
Refer to 3.3.1 for each module’s consumption current
In case system is configured as above, since 5V consumption current is total 1,140 mA and 5V output of main unit is maximum
2A, normal system configuration is available.
In case system is configured as above, since 5V consumption current is total 2,150 mA and 5V output of ML50 32 points main
unit is maximum 2A, configuration is not available. This total consumption current is calculated when all input/output points are on.
For safety for system, it is recommened to use higher specification of main unit.
3.4 Battery
3.4.1 Battery specifications
Items Specifications
Nominal voltage / current DC 3.0V / 6.5 mAh
Warranty term 3 years(at room temperature)
Purpose RTC operation during the blackout
Charging time
About 6 months(25℃)
surrounding
Back-up time
temperature
Backup time 70℃ about 195 days
25℃ about 183 days
-25℃ about 133 days
Specifications
Items Remark
MLU-DN32H2/MLU-DN32HP
Control by instruction, auto-tuning,
PWM output, Forced output,
PID control
Operation scan time setting,Antiwindup, Delta MV, SV lamp,
Hybrid operation, Cascade operation
Dedicated protocol(ML)
Modbus protocol
PID control
Cnet User defined protocol ,
inverter protocol
Channel RS-232C 1 port and RS-485 1 port
Transfer spec Cable: 100Base-TX, Speed: 100Mbps, Auto-MDIX*1, IEEE 802.3
Topology Star
Enet Diagnosis Module information, Service condition
Protocol MLDP(dedicated), Modbus TCP/IP, user define frame
Service P2P, High Speed link, Remote connection,SMTP,SNTP, Auto scan
Performance 1 phase: 200㎑(2 phase: 100㎑)
channels 1phase 4 channels, 2 phase 2 channels
4 counter modes are supported based on input pulse and INC/DEC
method
High
• 1 pulse operation Mode : INC/DEC count by program
Speed Counter mode
• 1 pulse operation Mode : INC/DEC count by phase B pulse input
Counter
Built-in Function
Danger
Please design protection circuit at the external of PLC for entire system to operate safely because an abnormal
output or an malfunction may cause accident when any error of external power or malfunction of PLC module.
(1) It should be installed at the external side of PLC to emergency stop circuit, protection circuit, interlock circuit of
opposition action such as forward /reverse operation and interlock circuit for protecting machine damage such as
(2) If PLC detects the following error, all operation stops and all output is off.
(a) When over current protection equipment or over voltage protection operates
(b) When self diagnosis function error such as WDT error in PLC CPU occurs
When error about IO control part that is not detected by PLC CPU, all output is off.
Design Fail Safe circuit at the external of PLC for machine to operate safely. Refer to 4.1.1 Fail Safe circuit.
(1) Because of error of output device, Relay, TR, etc., output may not be normal. About output signal that may cause
When load current is more than rating or over current by load short flows continuously, danger of heat, fire may occur
Design for external power supply to be done first after PLC power supply is done. If external power supply is done
In case communication error occurs, for operation status of each station, refer to each communication manual.
In case of controlling the PLC while peripheral is connected to CPU module, configure the interlock circuit for system
to operate safely. During operation, in case of executing program change, operation status change, familiarize the
manual and check the safety status. Especially, in case of controlling long distance PLC, user may not response to
Limit how to take action in case of data communication error between PLC CPU and external device adding installing
Danger
Don’t close the control line or communication cable to main circuit or power line. Distance should be more than 100mm.
In case of controlling lamp load, heater, solenoid valve, etc. in case of Off -> On, large current (10 times of normal
current) may flows, so consider changing the module to module that has margin at rated current.
Process output may not work properly according to difference of delay of PLC main power and external power for
For example, in case of turning on PLC main power after supplying external power for process, DC output module may
malfunction when PLC is on, so configure the circuit to turn on the PLC main power first
Or in case of external power error or PLC error, it may cause the malfunction.
Not to lead above error to entire system, part causing breakdown of machine or accident should be configured at the
external of PLC
In case of AC In case of AC . DC
Power
Power
DC power
F0045
Pm
Pm 9
Fuse
F009C
F009C Pm Timer setting
Pm
Start
PLC RUN output Pm which DC input
Program
switch
Start available as RA1 Tm signal is
configured.
Stop
SW Input module
Start Program
switch
Pn
RUN by F009C Pm
Run by F009C
Emergency stop,
Stop by limit
Output module
Configure part that lead
opposite operation or
breakdown such as Power Off to
interlock circuit forward, output device
reverse revolution by (Emergency stop,
external interlock circuit stop by limit
Start sequence of power. In case of AC switch)
(1) Turn on power
(2) Run CPU.
(3) Turn on start switch
Start sequence of power. In case of AC DC
(4) Output device runs by program through
(1) Run CPU after power is on
magnetic contactor (MC) [On]
(2) Turn on RA2 as DC power on
(3) Turn on timer after DC power is stable.
(4) Turn on start switch
(5) Output device runs by program through magnetic contactor (MC) [On]
<System example>
On delay timer
P200 T1
F0093 Off delay timer
P200 T2
External load MC
P201 L
~
P20F L
P200
24V
- +
0.5s 0.5s 0V
T1 T2 DC24V
MC
CPU unit Output module
(d) Average power consumption by output voltage drop of the output module(power consumption of simultaneous On point)
• Wout = Iout X Vdrop X output point X simultaneous On rate (W)
Iout : output current (actually used current) (A)
Vdrop: voltage drop of each output module (V)
I24V
DC24V
Main unit Comm. Comm. output input Special input
AC power
100V~240V DC5V I5V
constant
Voltage
transformer
Iout Iin
load
AC power
DC 100V~240V
power
24V
The calculation of temperature rise within the control panel is displayed as follows.
T = W / UA [C]
W : power consumption of the entire PLC system (the above calculated value)
A : surface area of control panel [m2]
U : if equalizing the temperature of the control panel by using a fan and others : 6
If the air inside the panel is not ventilated : 4
If installing the PLC in an air-tight control panel, it needs heat-protective(control) design considering the heat from the PLC as well
as other devices. If ventilating by vent or fan, inflow of dust or gas may affect the performance of the PLC system.
2 기본 파라미
Remark
Module must be mounted to hook for fixation properly before its fixation.
The module may be damaged from over-applied force. If module is not mounted properly, it may cause malfunction.
Remark
When separating module, do not apply excessive force. If so, hook may be damaged.
-If used outside the range, electric shock, fire, malfunction, or damage to the product may cause damage.
• You can install ML50 compact type main unit onto a panel directly using screw hole
• Use M4 type screw to install the product onto a panel.
Panel
30㎜ or above *1
Panel
PLC
20㎜or above*3
30㎜or above*1
5㎜ or above*1 5㎜ or above
*1 : In case height of wiring duct is less than 50 mm (except this 40mm or more)
*2 : In case of equipping cable without removing near module, 20mm or more
*3 : In case of connector type, 20mm or above
To avoid radiation noise or heat, keep the distance between PLC and device (connector and relay) as far as the following figure.
Device installed in front of PLC: 100 ㎜ or more
Device installed beside PLC: 50 ㎜ or more
(c) Environment
In case of wiring IO module, if device or material that induce high heat is too close or oil contacts wire too long time, it may
cause short, malfunction or error.
(d) Polarity
Before supplying power of module which has terminal block, check the polarity.
(e) Wiring
• In case of wiring IO with high voltage line or power line, induced obstacle may cause error.
• Let no cable pass the IO operation indication part (LED).
(You can’t discriminate the IO indication.)
• In case induced load is connected with output module, connect the surge killer or diode load in parallel. Connect cathode of
diode to + side of power.
Output module
Surge killer
COM
(g) Don’t impact IO module or don’t disassemble the PCB from case.
4.3 Wire
In case using system, it describes caution about wiring.
Danger
When wiring, cut off the external power.
If all power is cut, it may cause electric shock or damage of product.
In case of flowing electric or testing after wiring, equip terminal cover included in product. It not, it may cause electric shock.
Remark
Do D type ground (type 3 ground) or above dedicated for PLC for FG and LG terminal. It may cause electric shock or
malfunction.
When wiring module, check the rated voltage and terminal array and do properly.
If rating is different, it may cause fire, malfunction.
For external connecting connector, use designated device and solder.
If connecting is not safe, it may cause short, fire, malfunction.
For screwing, use designated torque range. If it is not fit, it may cause short, fire, malfunction.
Let no foreign material enter such as garbage or disconnection part into module. It may cause fire, malfunction, error.
(3) Isolate the PLC power, I/O devices and power devices as follows.
(6) When noise may be intruded inside it, use an insulated shielding transformer or noise filter.
(7) To prevent surge from lightning, use the lightning surge absorber as presented below.
(8) Wiring of each input power should be twisted as short as possible and the wiring of shielding transformer or noise filter should not
be arranged via a duct.
PLC
I/O device
E1 E2
Surge absorber to prevent lighting
Remark
(1) Isolate the grounding(E1) of lightning surge absorber from the grounding(E2) of the PLC.
(2) Select a lightning surge absorber type so that the max. voltage may not the specified allowable voltage
of the absorber.
(1) The size of I/O device cable is limited to 0.3~2 mm2 but it is recommended to select a size(0.3 mm2) to use conveniently.
(2) Please isolate input signal line from output signal line.
(3) I/O signal lines should be wired 100mm and more away from high voltage/high current main circuit cable.
(4) Batch shield cable should be used and the PLC side should be grounded unless the main circuit cable and power cable can not
be isolated.
Output DC
(5) When applying pipe-wiring, make sure to firmly ground the piping.
Notes
1) For reducing noise and improving system safety, add Dummy resistor to increase load current
P2B
DC12/24V
P
DC24V
OUT
COM
List Description
Load Voltage DC12V / DC24V
Range of Load current 10mA ~100mA
Output frequency 200kpps or below
(1) The PLC contains a proper noise measure, so it can be used without any separate grounding if there is a large noise. However, if
grounding is required, please refer to the followings.
(2) For grounding, please make sure to use the exclusive grounding.
For grounding construction, apply type 3 grounding(grounding resistance lower than 100 )
(3) If the exclusive grounding is not possible, use the common grounding as presented in B) of the figure below.
(4) Use the grounding cable more than 2 mm2. To shorten the length of the grounding cable, place the grounding point as close to
the PLC as possible.
(5) If any malfunction from grounding is detected, separate the FG of the base from the grounding.
Chapter 5 Maintenance
Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions.
Chapter 6 Troubleshooting
The following explains contents, diagnosis and corrective actions for various errors that can occur during system operation.
(3) Narrow down the possible causes of the trouble where the fault lies, i.e.:
• Inside or outside of the PLC ?
• I/O module or another module?
• PLC program?
6.2 Troubleshooting
This section explains the procedure for determining the cause of troubles as well as the errors and corrective actions.
Symptoms
Is the power LED turned Flowchart used when the POWER LED is turned Off.
Off ?
Is the ERR LED flickering ? Flowchart used when the ERR LED is flickering.
Are the RUN, STOP Flowchart used when the RUN, STOP turned Off.
LED turned
Off ?
I/O module doesn’t operate flowchart used when the I/O part doesn’t operate normally.
properly.
Program cannot be written. Flowchart used when a program can’t be written to the PLC.
6.2.1 Troubleshooting flowchart used when the PWR (Power) LED turns Off
The following flowchart explains corrective action procedure used when the power is supplied or the power
LED turns Off during operation.
No Yes
Yes Does the power LED
turns On?
No
Is the voltage within the rated Supply the power properly.
power?
Yes
Yes Yes
Does the power LED
turns On?
No
No Yes
Does the power LED
turns On?
Complete
6.2.2 Troubleshooting flowchart used with when the ERR (Error) LED is flickering
The following flowchart explains corrective action procedure used when the power is supplied starts or the ERR LED
is flickering during operation.
No
No
Is ERR LED still
flicking ?
Complete Yes
Warning
Though warning error appears, PLC system doesn’t stop but corrective action is needed promptly. If not, it
may cause the system failure.
6.2.3 Troubleshooting flowchart used with when the RUN , STOP LED turns Off.
The following flowchart explains corrective action procedure to treat the lights-out of RUN LED when the
power is supplied, operation starts or is in the process.
No
Is RUN/ STOP LED Off?
Yes
6.2.4 Troubleshooting flowchart used when the I/O part doesn’t operate normally.
The following flowchart explains corrective action procedure used when the I/O module doesn’t operate normally.
No
Is the output LED of SOL1
On?
Yes
Measure the voltage of Correct wiring. Replace the connector of Check the status of SOL1
the terminal block.
terminal in SOL1 by Tester. by XG5000.
No No
Is the No
Yes Yes
Is the output terminal connector Is it normal condition?
Is the measured value
normal? wiring correct? appropriate?
Yes
Yes
Yes
Yes No
Is it normal condition?
Continue
No
Are the indicator LED of the
switch 1 and 2 on?
Yes
Is the
Yes
Is the measured value Is the measured value terminal screw tighten
normal? normal? securely?
No No
Yes No Yes
Input unit Check the status of the Check from the beginning. Input unit
replacement is switch 1 and 2. replacement is
Needed. Needed.
~ ~
External device External device
DC input
DC input
Leakage current
R R
External device
When the output is Load is half-wave rectified inside (in some cases, Connect registers of tens to hundreds KΩ across the
off, excessive it is true of a solenoid) load in parallel.
voltage is applied When the polarity of the power supply is as shown
R
to the load. in ①, C is charged. When the polarity is as shown in
②, the voltage charged in C plus the line voltage are
D
applied across D. Max. voltage is approx. 2√2.
C
R ~
Load
C D
~
R Load
Load Load
When the load is C- Leakage current by surge absorbing circuit, which Drive the relay using a contact and drive the C-R type
R type timer, time is connected to output element in parallel. timer using the since contact.
constant fluctuates. Use other timer than the CR contact some timers
Output
have half-ware rectified internal circuits therefore, be
Load
C cautious. Timer
R ~ T
Leakage current
Output X
~
The load does not Sneak current due to the use of two different Use only one power supply.
turn off. power supplies. Connect a sneak current prevention diode.
Output Output
Load
Load
E1 E
E2 E 1
2
If the load is the relay, etc, connect a counter-
E1<E2, sneaks. E1 is off (E2 is on), sneaks. electromotive voltage absorbing code as shown by the
dot line.
;
Output circuit troubles and corrective actions (continued).
Condition Cause Corrective actions
The load off Over current at off state [The large solenoid Insert a small L/R magnetic contact and drive the
response current fluidic load (L/R is large) such as is load using the same contact.
time is long. directly driven with the transistor output.
Output Output
Off current
Load
E1 Load
Output Surge current of the white lamp on. To suppress the surge current make the dark
transistor is current of 1/3 to 1/5 rated current flow.
destroyed.
Output
Output
R E
1
E1
Sink type transistor output
Output
E
1
RUN
0.5 second
27 Compile error Check the program Warning mode
Flicker
switching
Data of I/O module does After checking the position of slot where the
0.1 second
33 not access normally during access error occurs by XG5000, change the Heavy error Scan end
Flicker
operation. module and restar (acc.to parameter.)
Normal access of
After checking the position of slot that access error
special/link module 0.1 second
34 occurred by XG5000, change the module and Heavy error Scan end
data during operation not Flicker
restart (acc.to parameter).
available
RUN
Extension Extension module is attached over 10 slot or 0.1 second
38 Heavy error mode
Module exceed communication module is attached over 3 slot Flicker
switching
Error
code Action Operation LED Diagnosis
Error cause
(restart mode after taking an action) status status point
(Dec)
Operation error
Remove operation error → reload the program While
occurs while 0.5 second
41 and restart. Warning running the
running the user Flicker
program
program.
Timer index user After reloading a timer index program modification, 0.5 second
44 Warning Scan end
error start Flicker
Heavy error of Refer to Heavy error detection flag and modifies 0.5 second
50 Warning Scan end
external device the device and restart. (Acc. Parameter) Flicker
1 second
55 Task confliction Check task occurrence Warning Every time
Flicker
While
E_STOP function After removing error causes which starts E_STOP 1 second
60 Warning running the
executed function in program, power reinput Flicker
program
Data memory backup not If not error in battery, power reinput 1 second
500 Warning Reset
possible Remote mode is switched to STOP mode. Flicker
1second Ordinary
501 Abnormal clock data Setting the time by XG5000 if there is no error Warning
Flicker time
Table13-1
(a) Use SPCC (Cold Rolled Mild Steel) for the control panel.
(b) The steel plate should be thicker than 1.6mm.
(c) Use isolating transformers to protect the power supply from external surge voltage.
(d) The control panel must have a structure which the radio waves does not leak out.
For example, make the door as a box-structure so that the panel body and the door are overlapped each other. This
structure reduces the surge voltage generate by PLC.
Panel body
Door
Seal
(e) To ensure good electrical contact with the control panel or base plate, mask painting and weld so that good
surface contact can be made between the panel and plate.
Earthing and power supply wires for the PLC system must be connected as described below.
ferrite core
(a) Earth the control panel with a thick wire so that a low impedance connection to ground can be ensured even at high frequencies.
(b) The function of LG (Line Ground) and FG (Frame Ground) terminals is to pass the noise generated in the PLC system to the ground,
so an impedance that is as low as possible must be ensured.
(c) The earthing wire itself can generate the noise, so wire as short and thick to prevent from acting as an antenna.
(d) Attach ferrite core under the power cable to satisfy CE specification.
[ ferrite core]
External Dimension (mm) maximum
cable
manufacture name address
A B C D diameter
(mm)
Laird 28A3851-0A2 30.00 13.00 33.70 30.00 12.85 www.lairdtech.com
Laird 28A5776-0A2 29.20 20.00 42.00 42.00 19.40 www.lairdtech.com
Coilmaster C2L RU130B 31.50 13.00 33.00 31.50 13.00 www.coilmaster.com.tw
TDK ZCAT3035-1330 30.00 13.00 34.00 30.00 13.00 www.tdk.com
The low-voltage directive requires each device that operates with the power supply ranging from 50V to 1000VAC and 75V to 1500VDC to satisfy
the safety requirements. Cautions and installation and wiring of the PLC ML50 series to conform to the low-voltage directive are described in this
section.
The described contents in this manual are based on the requirements and the applicable standards control. However, Honeywell will not
guarantee that the overall machinery manufactured according to the these details conforms to the above regulation. The method of conformance
to the EMC directive and the judgment on whether or not the machinery conforms to the EMC Directive must be determined finally by the
manufacturer of the machinery.
The ML50 PLC complies with EN6100-1 (safety of equipment used in measurement and control laboratories.
ML50 series PLCs have been developed in accordance with the above standards for modules operating at rated voltage of AC50V / DC75V
or higher.
This Chapter covers the details of programming and operations, monitoring of basic unit
Bit
Flag Name Name Description
The below figure shows the PLC’s execution processing flow chart when instantaneous interruption occurs.
Notice
Instantaneous interruption means the state that the PLC exceeds the allowable variation rage of the specified power
and is lower than the range. The brief (several ms ~ dozens of ms) blackout is called instantaneous interruption.
The scan time is the sum of the process time of the scan program and interrupt program written by a user and
the PLC’s internal END processing time; it can be calculated by the below formula.
(a) Scan time = scan program processing time+interrupt program processing time+PLC internal processing
time
Scan program processing time = Processing time of the user program excluding the interrupt program
Interrupt program processing time = Sum of the interrupt program running time processed for 1 scan
PLC internal processing time = Self-diagnosis time + I/O refresh time + internal data processing time
+ communication service processing time (processing SoftMaster service and embedded
communication)
MPU processing time Expansion interface processing time
PLC
Analog module
Model Scan program internal Digital I/O module Communication module
(8 channels,
running (32K) Processing (32 points, 1 EA) (200 byte, 1 block)
1EA)
time
MLU-DN32HP 7.2 ㎳ 0.8㎳ 0.3㎳ 2.0㎳ 0.8㎳
MLU ’HP’ unit performs the control operation based on the below sequence. Accordingly, you can estimate the rough control
performance of the system to be designed by using the below calculation method.
I/O processingI/O처리시간
time
Communication
통신 모듈 서비스 module service
System
시스템processing
처리
XG5000 서비스
태스크처리 SoftMaster, Service
Task processing
Basic
기본유닛 unit 래더수행시간
Ladder processing time Ladder processing
래더수행시간
time 스캔시간
Scan time
통신데이터
Comm. data
Output
Input
Expansion
module
증설 모듈 Self-processing
자체처리
입출력모듈
Exchange of I/O module데이터교환
data 통신모듈
Exchange
데이터교환of communication module data
Scan time = Ladder running time + system processing time + digital module I/O processing time + analog I/O
processing time + communication module processing time + SoftMaster Service processing time
System Configuration
Items
Basic unit SLOT2 SLOT3 SLOT4 SLOT5 SLOT6 SLOT7 SLOT8
Product
MLU-DN32HP MLE-DC32A * 3EA MLF-AD04A * 2EA MLL-C41A MLL-EMTA
name
Operating 200 Byte per module,
20kStep - -
conditions 1 block
Scan time= Ladder running time + system processing time + digital I/O processing time + analog I/O
processing time + communication module processing time + SoftMaster Service processing time = 7.2 +
0.8 + 0.3*3 + 2.0*2 + 0.8*2 +0.1= 14.6㎳
However, in the event of changing during RUN or writing communication parameters with SoftMaster, it
requires converting the program changed during RUN into executable machine code in the PLC or other
internal processing operations for changed communication parameters so the scan time may be temporarily
increased by several ms or more.
(b) How to use flag : The scan time is saved in the below system flag (F) area.
WORD Flag Name Name Description
The longest scan time
F0050 _SCAN_MAX Maximum scan time
(update in case of occurrence only), in 0.1ms
The shortest scan time
F0051 _SCAN_MIX Minimum scan time
(update in case of occurrence only), in 0.1ms
F0052 _SCAN_MAX Current scan time Running time of this scan (scan update), in 0.1ms
Notice
1) Make the interrupt program as shortly as possible. In case the same interrupt occurs repeatedly during
executing the interrupt program, O/S watchdog error may occur with non-execution of the scan program.
(In case the self-interrupt occurs during executing the interrupt program, task conflict error may occur.)
2)Although interrupts with low priority occur several times during executing the one with high priority, the interrupt
will run just once so you should pay attention to set up the priority.
1.1.5 Interrupt
(1) Interrupt processing flow chart
It describes the PLC’s operation flow chart, giving you the example of setting the interrupt program as below.
• Interrupt setting
Interrupt type Interrupt Name Priority Task No. Program Name Remarks
Initialization Interrupt0 - - Initialization program
Fixed cycle 1 Interrupt1 2 0 Fixed cycle 1
External Interrupt2 2 16 External
Internal device Interrupt3 3 24 Internal device
High speed
Interrupt4 4 40 High speed counter
counter
Fixed cycle 2 Interrupt5 3 1 Fixed cycle 2
Scan program
Initializing
(Before INIT_DONE instruction)
Internal device
Interrupt occur
Notice
1) If the interrupt with the same priority occur at the same time, the early set interrupt will be executed first. (In
case ‘interrupt 1’and‘interrupt 2’occur at the same time, ‘interrupt1’will be executed first.)
2) If the interrupt with higher priority occurs during execution of interrupts, the interrupt with higher priority will be
executed first.
3) All interrupts are allowable (Enable) when the power is On. If you want to run by interrupt program or prohibit
them, you can use EI, DI command.
4) The internal device interrupt will run after getting the END command.
Maximum
16 EA 8 EA 16 EA 4 EA 1EA
number
first. If the tasks with the same priority stand by, they should be processed in order of occurrence.
When the fixed cycle task and external contact task occur at the same time, the task set early by
SOFTMASTER will be executed by priority.
Set up the priority of the task programs in consideration of characteristics, importance of the programs
and urgency of required executions.
(c)Processing delay time
The delay of task program processing is caused by the below causes. Consider these factors when setting
up tasks and writing programs.
Delayed detection of tasks (Refer to the detailed description of each task.)
Program execution delay due to execution of the preceding task program
Input/output data refresh of expansion special module
(d) Relation between the initialization, scan program and the task program
When executing the initialization task program, the fixed cycle, external contact, high speed counter,
internal contact task cannot be started.
The scan program has the lowest priority so when the task occurs, the scan program will be suspended
and the task program will be executed preemptively. Accordingly, in case the tasks occur frequently during
one scan or they converge intermittently, the scan time may be extended abnormally. You should consider
this point when setting tasks.
(e) Protection of the currently running scan program by prohibiting tasks execution
If you do not want the scan program to be suspended by the task program with high priority during
executing the scan program, you can partially prohibit the execution of task programs by using the below
DI, EI command in order to protect the scan program.
(When the power is supplied to the PLC, the initial values of all tasks are EI (allowable) state.)
When making the task program with fixed cycle, the task program should be executed within 10% of the operation
cycle of the shortest task among several tasks.
Ex.) When the task program’s running time is 1ms, the fixed cycle time should be more than 10ms.
(d) Is the protection of the program needed for the task with high priority during execution of the program?
If the other task interrupts during execution of the task program, after the executing task is completed, among
pending tasks, the one will run in order of priority. If you do not want interruption of other tasks during
execution of the task program, protect the program with DI, EI applied commands.
Execution of
Scan program
Execution of program 1
Occurrence
of 10ms_fixed cycle
Execution of program 2
Occurrence of
Internal contact M000
Execution of program 3
Occurrence of
external contact P000
Time
0 6 7 8 10 12 20 22 24 25 30 32 34
(a) Adding task: Select 『Project』–『Add Items』–『Task』 or after clicking with the right mouse button on
the project name of the project tree, select 『Add Items』-『Task』 as shown in the below figure.
(b) The screen for registering the task will be displayed. Click 『Initialization』 in the execution conditions
and enter the task name.
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(d) Make the necessary initialization program and make sure to include the INIT_DONE command to the
initialization task program.
(If the operation conditions of INIT_DONE runs, the initialization task is ended and the scan program runs.)
(b) The screen for registering the task will be displayed. Click 『Fixed cycle』in the execution conditions and
after entering the task name, input the items required for setting as below
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(e) If the program window for writing the task program is displayed, you can make the task program here.
The corresponding task program with fixed cycle runs at every set time interval (running cycle) and keep
the below instructions in mind.
• When the specific task program with the fixed cycle runs currently or stands by for execution, if the request
on running the same task program occurs, the newly occurred task will be ignored.
• The timer generating the request on running the task program with fixed cycle works only when the
operation mode is RUN mode. Ignore all the blackout time.
• When setting up the running cycle of the task program with fixed cycle, the request on running several task
programs should not occur.
If you apply 4 task programs with the fixed cycle of 2 seconds, 4 seconds, 10 seconds, 20 seconds, 4
execution requests occur simultaneously every 20 seconds and 4 tasks runs at once so the scan time
may be longer momentarily.
(a) Adding tasks: Select 『Project』–『Add Items』–『Task』 or after clicking with the right mouse button on
the project name of the project tree, select 『Add Items』-『Task』 as shown in the below figure.
(b) The screen for registering the task will be displayed. Click 『External contact』in the execution conditions
and after entering the task name, input the items required for setting as below.
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(e) If the program window for writing the task program is displayed, you can make the task program here.
When the rising, falling or transition conditions occur in the set input contact, the corresponding external contact task
program runs and keep the below instructions in mind.
running the same input task program occurs, the newly occurred task will be ignored.
• The input contact monitoring for the external contact tasks is executed only when the operation mode is
RUN mode. The input contact monitoring for task startup is not executed in STOP mode.
• The detection delay time of the external contact task is approximately 50us.
• When designing the system, several external contact tasks should not start at the same time. If P0000 ~
P0007 contacts are ON at the same time under all the external contacts of P0000 ~ P0007 are set as the
external contact tasks, 8 external contact task programs run at one so the scan time may be longer
momentarily.
(a) Adding tasks: Select 『Project』–『Add Items』–『Task』 or after clicking with the right mouse button on
the project name of the project tree, select 『Add Items』-『Task』 as shown in the below figure.
(b) The screen for registering the task will be displayed. Click 『Internal device』in the execution conditions and after
entering the task name, input the items required for setting as below.
set value.
Starts the task when the word is more than or equal
>=
to the set value.
Starts the task when the word is more than the set
>
value.
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(e) If the program window for writing the task program is displayed, you can make the task program here.
The internal contact task detects the startup conditions of the internal device set by the scan END and runs the
relevant internal device task program. Keep the below instructions in mind.
•The internal device task program runs when the scan program is completed. Accordingly, although the
execution conditions of the internal device task program occur in the scan programs or task programs (fixed
cycle, external contact, high speed counter), it will run at the time of completing the scan program instead of
running immediately.
• In the case of the internal device task, the execution conditions are searched when the scan program is
completed. Accordingly, if the execution conditions of the internal device task occur and dissipate by the scan
program or other task programs, the task will not run since the execution conditions cannot detected at the
time of searching the conditions.
(a) Adding tasks: Select 『Project』–『Add Items』–『Task』 or after clicking with the right mouse button on
the project name of the project tree, select 『Add Items』-『Task』 as shown in the below figure.
(b) The screen for registering the task will be displayed. Click 『High speed counter』 in the execution conditions
and after entering the task name, select the channel.
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(e) If the program window for writing the task program is displayed, you can make the task program here.
• When the high speed counter’s current value in the selected channel becomes equal to the comparative output
set value of 0 of the relevant channel in the below Fig., the high speed counter task will be detected and the task
program will run.
• You can check whether the conditions of the high speed counter task occur at every 250us cycle so detection
delay may occur up to 250us.
• The operations of the high speed counter task are performed only when the operation mode is RUN
mode.
(c) Adding tasks: Select 『Project』–『Add Items』–『Task』 or after clicking with the right mouse button on
the project name of the project tree, select 『Add Items』-『Task』 as shown in the below figure.
(d) The screen for registering the task will be displayed. Click 『Position control task』 in the execution conditions
and after entering the task name, select the channel.
(c) Click on the right mouse button on the registered task and click 『Add Items』-『Program』.
(e) Details of Positioning control task: refer to Part3 Ch04 Positioning Control
First scan of
RUN mode
excute? No
Change
operation mode?
Mode change
It is the mode of block state without operations of the program. In STOP mode, you can write the programs and
parameters through SOFTMASTER.
(b) Go
▪ Run the program to breakpoint. At break-pointer (stop indicator) is displayed.
Notice
(a) The mode change by SOFTMASTER is available only when the operation mode switch is in STOP state.
(b) If you want to change the mode into ‘STOP’ with a switch in the remote RUN state by SOFTMASTER,
operate
the switch as STOP RUN STOP.
Notice
▪In case the mode is changed into RUN by a switch in the remote RUN mode, the PLC is operates continuously
without intermission.
▪ Modificaiton is possible during run in the RUN mode by a switch but the mode change operaitons through SOFTMASTER
are
restricted. Only when mode change is not allowable in a remote site, set the mode switch in RUN position.
1.3 Memory
1.3.1 Data memory
Notice
(b) You can delete the latched data in the following ways.
- Deleting latch1, latch 2 with SOFTMASTER
- Writing with the program (The initialization program is recommended)
- Inputting 0 in the window of SOFTMASTER monitor
Refer to the below table for Maintaining or Reset (clear) operation of the latch area data depending on the
PLC operations.
No. Operations Detailed operations latch1 latch2 Remarks
1 Power On/Off On / Off Maintain Maintain
2 Reset by SOFTMASTER Overall Reset Reset Maintain
3 Write program (online) - Maintain Maintain
Broken SRAM due to (breakdown of a
Reset Reset
4 Broken backup data battery, etc.)
Broken data due to other reasons Reset Reset
Latch 1 Clear Reset Maintain
5 SOFTMASTER online
Latch 2 Clear Reset Reset
(c) If you click『Online』-『 Reset/Clear 』-『 Reset PLC 』-『Overall Reset』, the latch 1 area will be
cleared.
(d) After selecting 『Online』-『 Reset/Clear 』-『Clear PLC 』latch area 1,2, if you click “Delete”, it will be
cleared.
(a) After selecting 『Online』-『 Reset/Clear 』-『Clear PLC 』-『 Clear Memory 』, if you set up the
area to be deleted and click “Delete”, the device area will be cleared.
PLC
CPU Type Language Description Remarks
Name
Economic : MLI-DR10/14/20/30E
ML50-MLIE IEC language MLI-DN10/14/20/30E, Compact type
MLI-DP10/14/20/30E
Compact type
Deluxe: MLI-DR32/64H, MLI-DN32/64H
ML50-MLIH IEC language (DC power PLC
MLI-DP32/64H
included)
Standard : MLI-DR20/30/40/60SU,
ML50-MLISU IEC language Compact type
ML50 MLI-DN20/30/40/60SU
IEC61131 High performance :
Compact type
MLI-DN32U, MLI-DN32UP, MLI-DN32UA
ML50-MLIU IEC language (DC power PLC
MLI-DP32U, MLI-DP32UP, MLI-DP32UA
included)
MLI-DR28U, MLI-DR28UP, MLI-DR28UA
You can set up 3 items; ‘Basic operation setting’, ‘Device area setting’, ‘Error operation setting’.
If you click the 『Module』in the 『slot』 position, the list of each module will be displayed. Then, choose the module
that is matched with the actual system to be configured. The selected slot will be displayed as below.
If you press 『In Detail』button on the slot image or the relevant slot position in the base window as below, the
window for setting the filter, emergency output will be displayed.
Notice
• In case each set details are different from the actually accessed I/O module, ‘Module Type Mismatch Error’ occur and
the error will be displayed.
• If there is no setting, the CPU reads each I/O module’s information for operation.
The WDT (Watchdog Timer) is the function to detect the congestion of programs caused by PLC module’s hardware or
software.
(1) The Watchdog timer is the timer to be used to detect operation delay caused by the user program error. You can
set up the Watchdog timer’s detection time in SoftMaster’s basic parameters as below (Initial value: 500ms).
(2) The Watchdog timer monitors the scanning time during operation and when set detection time is exceeded, it
stops the PLC’s operations immediately. At this time, the output status is maintained or cleared based on the
details of ‘Output Hold when errors occur’.
(3) If it is expected that the Scan Watchdog Time is exceeded since it takes more time to process the specific part of
the user programs (in case of using FOR ~ NEXT command, CALL command, etc.), clear the Watchdog timer
through the ‘WDT_RST’ command.
The ‘WDT_RST’ command initializes the scan Watchdog time and restarts measuring time from 0.
WDT
Set value
WDT Count value WDT Count value
Set by 0
Execute WDT
Scan END
1 Scan
(4) In case the Watchdog error occurs, you can clear the error by resupplying the power or converting the mode into
STOP.
When errors occur, ML50 basic unit records the error history to clean up causes easily. If you click 『Online』-『Error/Warning』,
you can see the current errors and the history. Remove the causes of errors referring to the details and corrective measures of
each error item.
Notice
If you click ‘Delete’ in the Error/Warning window, all the saved error history will be deleted.
In case the error histories exceed 100EA, the histories are deleted in order from the one that occurred first and the
100EA recent histories are saved
stopped; In case of minor failures such as a battery’s low voltage, the warning is displayed and the operation will be
resumed.
The information on failures occurrence is saved in the special relay (F area). Among F area flags, the information
related to the failures are as below.
Word Bit Flag Name Function Description
%FW0 %FX2 _ERROR ERROR ERROR status
- _CNF_ER System error Reports the failure status of the system.
%FX33 _IO_TYER Module type error The module type is not matched.
%FX34 _IO_DEER Module separation error The module is separated.
There are some problems with the module
%FX36 _IO_RWER Module I/O error
I/O.
There are some problems with the special /
%FX37 _IP_IFER Module interface error
communication module interface.
Failures are detected from the external
%FX38 _ANNUM_ER External device failure
device.
There are some problems with the basic
%FX40 _BPRM_ER Basic parameters
parameters.
%FW2~3
There are some problems with I/O
%FX41 _IOPRM_ER IO parameters
parameters.
Special module
%FX42 _SPPRM_ER Abnormal special module parameters
parameters
Communication module Abnormal communication module
%FX43 _CPPRM_ER
parameters parameters
%FX44 _PGM_ER Program error There are some errors with the program.
There are some errors with the program
%FX45 _CODE_ER Code error
code.
%FX46 _SWDT_ER System Watch dog The system Watchdog works.
%FX48 _WDT_ER Scan Watch dog The scan Watchdog works.
Notice
• For more details on the whole flags, refer to the Appendix 1 Flag Table of the Outline of this manual.
• In case the module that is different from the set parameter is installed at the time of initial operation or failure is suspected
• In case expansion modules are detached or failure is suspected.
If abnormal conditions are detected, the basic unit’s ERR LED will be flickering and the PLC will be stopped.
(f) The below figure describes the example of the program detecting the external device’s serious failures with
operation details.
• In this example, assume that the input signal to detect the external device’s failures is connected to the
input module of No.5 slot in the system configuration as below.
- In case of the sensor failure, %IX0.5.0 is ON. The error code is the value saved in auto variable device
‘Sensor_ERR’.
- In case of the motor failure, %IX0.5.1 is ON. The error code is the value saved in auto variable device
‘Motor1_ERR’.
- When the device 1 is disconnected, %IX0.5.2 is ON. The error code is the value saved in auto variable
device ‘Device1_Discon’.
• In the above programming, when %IX0.5.0 is On (In case of sensor failure), the value of ‘Sensor_ERR’ is
saved in %FW202 (_ANC_ERR) and %FX3202 (_CHK_ANC_ERR) will be On.
• If %FX3202 is ON, it is detected by the scan end and the external device’s serious failures are generated.
• You can detect the failure of motor 1, disconnection of device 1 in the same way.
• After accessing to SoftMaster, a user can check which external devices have failures by verifying
the %FW202 value and can take follow-up measures.
• In this example, assume that the input signal to detect the external device’s minor failures is connected
MLU-H2/HP unit has the clock (RTC) function and the clock keeps working thanks to the battery backup even when the power
is Off. You can use the embedded RTC’s time data for time management such as the system’s operating history or failure
history, etc. The RTC’s current time is updated every scan based on the operation status information flag of the system.
3) If you want to transfer the PLC’s time to the PLC, click the PC clock and synchronization button.
4) If you want to set up your preferred time, after changing the set values of the data and time box, click them to the
PLC.
(b) Read with the special relay
You can monitor the data with the special relay as below.
Word Flag Name Name Data Description
%FW53 _MON_YEAR Clock data (month/year) 16#0709 July, xx09
%FW54 _TIME_DAY Clock data (hour/day) 16#1214 14h.12th
%FW55 _SEC_MIN Clock data (second/minute) 16#2040 20 min. 40 sec.
%FW56 _HUND_WK Clock data (Year/week) 16#2003 20xx,Wed.
Notice
• The clock data may not be stated in the shipped product so you need to set up the clock data correctly before use.
• If you write unserviceable clock data in the RTC, it will not work properly.
Ex.) 25:00, 32th, 14 month
• In case the RTC stops or error occurs due to a battery failure, if you write the new clock data in the RTC, the error
will be cleared.
Notice
• For more details on how to operate the remote functions, refer to ‘Chap.10 Online’ of the SoftMaster manual.
The below table represents the items related to the forced I/O setting.
2.6.2 Time to process the forced I/O On / Off and processing method
If you need to immediately refresh the I/O data during execution of the program, through DIFEC_IN, DIREC_OUT’
command, you can directly read the input contact status for operation or can directly print out the operation results in the
output contact.
Block Variable Contents
EN When EN=1 Function execute
BASE Base number (ML50= 0)
SLOT Output module slot number
MASK_L Set non-update bit among lower 32bit
MASK_H Set non-update bit among higher 32bit
ENO When no error, ENO=1
OUT When updating output data is finished OUT=1
The below figure indicates the example of the direct I/O operation through the DIFEC_IN, DIREC_OUT command.
(1) Input base number 0 and slot number 4 where output module is equipped
(2) Since data to output is 16 bit during scan, enable lower 16 bit among value of MASK_L (16#FFFF0000)
(3) If execution condition (%IX0.0.0) is On, DIREC_O (Immediate refresh of output module) is executed and data of output module
is set as 2#0111_0111_0111_0111.
Notice
• When writing/Reading DIREC_IN,DIREC_OUT in expansion module, it takes 1~2ms times
- Possibility of Task collision o when using cyclic task or internal task. Which operates in short term of
between two input signal.
• For more information refer to XGI/ML50 Instruction manual.
The items that can be modified during RUN are limited to programs, network parameters.
You cannot modify adding tasks, deletion, parameters, etc. during RUN.
(3) Then, the background color of the program window changes and it is converted into the mode of modification during
RUN.
(5) When the modification of the program is completed, click 『Online』-『Write Modified Program』
(7) The background color of the program window changes into the original one and modification during RUN is
completed.
Notice
• For Modification of communication parameters during RUN, after changing the network configuration items of
SoftMaster in the RUN status without going into the Modification during RUN menu, click 『Online』-『Write』
and choose ‘Network Parameter’ to execute Write.
(1) If you click 『Online』-『I/O Information』, the information of each module of connected systems will be monitored.
(2) If you click ‘Detailed Information’ after choosing the module, the details on the module will be displayed.
( d) Trend Monitor
It is the function to represent the set device value in a graphic form. The value represented on the graph is not the
data collected by the PLC at the right timing but the value read from SoftMaster through the communication function.
Accordingly, communication delay can occur so it may not be matched with the actual data collected at the right
cycle.
You are recommended to use the Trend Monitor function to check the rough data trend.
5) If you double-click the occurrence number, the detailed value of the device at the time of occurrence will be
monitored with the details as below.
Notice
(b) If you choose 『Yes』 in the dialog box, the window for selecting the connection method with the PLC to be
deleted is created.
(c) After choosing the connection method with the PLC to be deleted, if you click 『Access』or 『OK』, all
PLC programs, parameters, data, passwords will be deleted.
Notice
• Although the initial PLC is not connected, the function is executed. You can connect to the PLC after assess
setting.
• If you use the function to delete all of PLC, all PLCs’ internal data including passwords will be completely deleted
so be careful of this.
• If you use the function to delete all of PLC when the password is lost, it is possible to connect to the PLC so you
can reuse the PLC.
(1) For the type of digital input, there are two types such as current sink input and current source input.
(2) The number of max. Simultaneous input contact point is different according to module type. It depends on the input
voltage, ambient temperature. Use input module after checking the specification.
(3) When response to high speed input is necessary, use interrupt input contact point. Up to 8 interrupt points are
supported.
(4) In case that open/close frequency is high or it is used for conductive load open/close, use Transistor output module or
triac output module as the durability of Relay Output Module shall be reduced.
(5) For output module to run the conductive (L) load, max. open/close frequency should be used by 1second On, 1
second Off.
(6) For output module, in case that counter timer using DC/DC Converter as a load was used, Inrush current may flow in a
certain cycle when it is ON or during operation. In this case, if average current is selected, it may cause the failure.
Accordingly, if the previous load was used, it is recommended to connect resistor or inductor to the load in serial in order
to reduce the impact of Inrush current or use the large module having a max. load current value.
Output
Output
100
Open/Close times (× 10000)
50
30
20
10
AC 125V Resistive load
0.5 1 2 3 5 10 100
Rated voltage load Million times Rated voltage load Million times
200V AC 1.5A 1 200V AC 1 A 1
240V AC 1A (COS Ø=0.7) 1 240V AC 0.5A (COS Ø=0.35) 1
200V AC 0.4A 3 200V AC 0.3A 3
240V AC 0.3A (COS Ø=0.7) 3 240V AC 0.15A (COS Ø=0.35) 3
24V DC 1A 1 24V DC 0.3A 3
100V DC 0.1A (L/R=7ms) 1 100V DC 0.03A (L/R=7ms) 3
(9) A clamped terminal with sleeve can not be used for the ML50 terminal strip. The clamped terminals suitable for
terminal strip are as follows (JOR 1.25-3:Daedong Electricity in Korea).
(10) The cable size connected to a terminal strip should be 0.3~0.75 ㎟ stranded cable and 2.8 ㎜ thick. The cable may
have different current allowance depending on the insulation thickness.
(11) The coupling torque available for fixation screw and terminal strip screw should follow the table below.
(12) Noise can be inserted into input module. To prevent this noise, the user can set filter for input delay in parameter.
Consider the environment and set the input filter time.
Input filter time (ms) Noise signal pulse size (ms) Reference
1 0.3
3 1.8 Initial value
5 3
10 6
20 12
70 45
100 60
Specification MLE-DC08A
TB1 0
Photo coupler
(1) D TB2 1 TB01
0
C TB3 2 TB02
TB1 (2) L
R 5 TB03
ETB4 3
R V TB04
7 Internal DTB5 4 TB05
TB8
TB9 circuit TB6 5 TB06
COM
TB07
Terminal block no.
TB7 6
DC24V TB08
TB8 7 TB09
TB9 COM TB10
TB10 COM
(3)TB2
D 1 TB01
Photo coupler
TB02
TB3C 2
0
(4) L TB03
TB1
R TB45 3
TB04
TB5VE 4
R TB05
D
7 Internal TB6 5 TB06
TB8
circuit TB7 6 TB07
TB9
COM TB8 7 TB08
B03 A03
70 B06 0E A06 1E B02 A02
B01 A01
60 B05 0F A05 1F
50 DC28.8V
B04 NC A04 NC
40
0 10 20 30 40 50 55 ℃ B03 NC A03 NC
Ambient temperature (℃) B02 COM A02 COM
B01 COM A01 COM
TB1 0
TB2 1
DC5V
(6) L TB3 2 TB1
TB1
E (7) LTB4 TB2
3
D
TB3
Internal RY TB5 4 TB4
TB8
circuit (5) LTB6 5 TB5
TB9 TB6
TB7 6 TB7
Terminal block no. TB8 7 TB8
TB9
TB9 COM
DC5V
TB09
TB02 1
(23) L
TB01
E TB03 2
TB10 TB02
D
Internal TB08 TB04 3 TB03
circuit (22) L TB04
TB05 4
TB05
TB06 5 TB06
R TB07 6 TB07
TB01
(24) L TB08
TB08 7 TB09
Terminal bloc TB09 COM TB10
k no.
TB10 0V
E
DC12/24V B15 05 A15 15 B18 A18
B17 A17
A02,A01 B14 06 A14 16
D B16 A16
Internal B13 07 A13 17 B15 A15
circuit A05 (28) L 08
B12 A12 18 B14 A14
B13 A13
B11 09 A11 19 B12 A12
B10 0A A10 1A B11 A11
B09 0B A09 1B B10 A10
B09 A09
R B08 0C A08 1C
B20 B08 A08
B07
(30) L 0D A07 1D B07 A07
B06 0E A06 1E B06 A06
B05
Connector No B05 0F A05 1F A05
B04 A04
. B04 NC A04 NC B03 A03
B03 NC A03 NC B02 A02
B01
B02 A02 A01
COM 0V
B01 A01
TB9 COM
B03 A03
70 B06 0E A06 2E B02 A02
B01 A01
60 B05 0F A05 2F
50 DC28.8V
B04 NC A04 P
40
0 10 20 30 40 50 55 ℃ B03 NC A03 P
Ambient temperature (℃)
B02 IN_COM A02 OUT_COM
TB1 0
DC5V TB2 1
(34) L TB1
TB1
E (35) TB3
L 2 TB2
Internal D TB3
circuit RY TB4 3
TB4
TB8
(33) L TB5
TB5 4
TB9 TB6
TB6 5 TB7
The below timing chart represents the operations of the input filter function.
When the emergency output is cleared, the output is turned off when the operation is stopped because an error
occurs in the PLC. If you select hold Maintain output status.
The below timing chart represents the operations of the Pulse Catch function.
Item Specification
Rated voltage AC125 / DC 24[V]
Rated current Max. 1[A]
Withstanding volta
500V 1min
ge
Insulation resistor 100㏁ (DC500V)
AWG22-16
Cable specification
(1.5mm2 / MAX)
Terminal/screw M3 X 8L
1.2N ∙ m
Torque
(12kgf ∙ cm)
Terminal Modifide PP0
material Cover Polycarbonate
PCB Epoxy 1.6t
At this time, relationship of ML50 IO signal and Smart link board terminal number is as follows.
The following figure describes signal allocation when C40HH-10SB-XBI is used as connection cable.
When the user makes the cable, make sure that wring is done as figure below.
ML50 series have built-in function of High-speed counter in main unit. This chapter describes specifications and usage of
High-speed counter’s function
Classification Spcification
Classification Spcification
Output points 2 point/channel (for each channel):use output contact point of main unit
External Selects single-compared (>, >=, =, =<, <) or section-compared output (included or
Type
output excluded) (program setting)
Output type Transistor output
Count Enable To be set through program (count available only in enable status)
Preset function To be set through terminal (contact) or program
Count Latch
Auxiliary mode Frequency Measure
(Program setting) Count per unit time (time setting value: 1~60,000ms)
Count pause
Signal On/Off
Operation
Terminal
I/O Internal circuit guaranteed
No. 1-phase 2-phase
voltage
Ch 0 Ch 0 On 20.4~28.8V
B20
4. 7 k Pulse input A-phase input Off 6V or less
B19 Ch 1 Ch 0 On 20.4~28.8V
4. 7 k Pulse input B-phase input Off 6V or less
Ch 2 Ch 2 On 20.4~28.8V
B18
Pulse input A-phase input Off 6V or less
4. 7 k
Ch 3 Ch 2 On 20.4~28.8V
B17
4. 7 k Pulse input B-phase input Off 6V or less
Input
Ch 0 Ch 0 On 20.4~28.8V
B16
5. 6 k Preset input Preset input Off 6V or less
Ch 1 On 20.4~28.8V
B15 -
Preset input Off 6V or less
5. 6 k
Ch 2 Ch 2 On 20.4~28.8V
B14
Preset input Preset input
5. 6 k Off 6V or less
Ch 2 On 20.4~28.8V
B13 -
Preset input Off 6V or less
5. 6 k
B01/B02 COM (input common)
• Operation example
A phase input
pulse
Up/Down On
count setting Off Off
Count 10 11 12 13 12 11 12
Up Down Up
• Operation example
A phase input
pulse
On
B phase input Off Off
pulse
Count 10 11 12 13 12 11 12
Up Down Up
A phase input
pulse
B phase input
pulse
Count 10 11 12 13 14 15 16 17 18 19 20 21 22 23 22 21 20 19 18 17 16 15 14 13 12 11 10
Up Down
A phase input
pulse
B phase input
pulse
Count 10 11 12 13 12 11 10
Up Down
2,147,483,647
Input
Count start pulse
-2,147,483,648
Borrow
Carry
Ring counter max. and min value is saved at the following special K area.
Area per each channel (Double word)
type Reference
Ch.0 Ch.1 Ch.2 Ch.3
Ring counter
%KD154 %KD169 %KD184 %KD199
Min. value
Ring counter
%KD155 %KD170 %KD185 %KD200
Max. value
▪ Range of Ring counter: user defined min. value ~ user defined max. value
▪ Counter display: in case of using ring counter, user defined max. value is not displayed.
1) During increasing count
Even if count value exceeds user-defined maximum value during increasing count, Carry only occurs and
count does not stop differently to Linear Count.
Ring count max.
value
Input pulse
Carry
Carry/borrow reset
Count start
Input pulse
: Not included
: Included
Borrow
Carry/Borrow reset
3) Operation when setting Ring Count based on present count value (during increasing count)
• If present count value exceeds user-defined range when setting Ring Count
- Error (code no. 27) is occurred and it operates linear counter.
• If present count value is within user-defined range when setting Ring Count
- Present count value starts to increase up to the user-defined maximum value and down to the user-
defined minimum value and keeps counting after Carry occurs.
- Not the maximum but the minimum value only is displayed with count kept on as shown below.
2,147,483,647
Carry occurred
Ring Count Carry occurred
Max. value
Present
Ring Count position
Min. value ○ :Not included
● :Included
-2,147,483,648 Present position
4) Operation when setting Ring Count based on present count value (during decreasing count)
• If present count value exceeds user-defined range when setting Ring Count
- Error (code no. 27) is occurred and it operates linear counter. If the present count value goes into the
ring count range, it operates ring counter.(The error code is not cleared.)
• If present count value is within user-defined range when setting Ring Count
- Present count value starts to decrease down to the user-defined minimum value and up to the user-
defined maximum value and keeps counting after Borrow occurs.
2,147,483,647
Ring Count
maximum value
Present position
Ring Count
Present position Borrow occurred
minimum value ○ : Not included
Borrow occurred ● : Included
-2,147,483,648
※If out of the user-defined ※If within the user-defined range
range
Remark
(1) Based on count value within or out of user-defined range, count will be decided to be within or out of the range
when setting Ring Count.
(2) Ring Count setting when count value is out of the range is regarded as user’s mistake. The count is not available
within the Ring Count range.
(3) Use preset function or the like when using Ring Count so to surely position the count value within the range.
• In order to output the compared output signal, compared output enable flag set to ‘1’ after compared output condition
set.
Area per channel
Classification Operation
Ch. 0 Ch. 1 Ch. 2 Ch. 3
Count enable signal %KX4160 %KX4320 %KX4480 %KX4640 0: N/A, 1: enable
Compared enable0 signal %KX4164 %KX4324 %KX4484 %KX4644 0: forbidden, 1: enable
Compared enable1 signal %KX4167 %KX4327 %KX4487 %KX4647 0: forbidden, 1: enable
▪ In order to make external output, the compared coincidence output signal (P20~P2F) must be set. If Compared output
contact is ‘Off’ at Special Module Parameter Setting of SoftMaster, Compared coincidence output signal (internal
device) is only output.
Area per channel
Classification Operation
Ch. 0 Ch. 1 Ch. 2 Ch. 3
0: Compared output not
Comparator output
%KX4178 %KX4338 %KX4498 %KX4658 equivalent
signal0
1: Compared output equivalent
0: Compared output not
Comparator output
%KX4179 %KX4339 %KX4499 %KX4659 equivalent
signal1
1: Compared output equivalent
6) Mode 5
(Section comparison: Min. set value of Compared Output 0 ≤ Count value ≤ Max. set value of Compared Output 0)
If present count value is greater than or equal to the minimum set value of compared output 0 and less than or
equal to the maximum set value of compared output 0, output is sent out, and if count value increases/decreases to
exceed compared value’s range, output is not sent out.
Comparator Enable
Compared ouput
External output
(in case of Enabled)
7) Mode 6 (Count value ≤ Min. set value of Compared Output 0 or Count value ≥ Max. set value of Compared Output 0)
If present count value is less than or equal to the minimum set value of compared 0 and greater than or equal to the
maximum set value of compared 0, output is sent out, and if count value increases/decreases to exceed compared
value’s range, output is not sent out.
Comparator Enable
Compared output
result
External output
(in case of Enabled)
Remark
Ultimate performance ML50 main unit checks present count value every 250㎲ and executes compared output
function. Therefore, it can takes maximum 250㎲ delay to detect compared condition.
(a) Setting
1) Set the unit time and the number of pulse per 1 revolution.
Setting value is saved at the following special K area and user can designate directly.
2) In case of using Rev/unit time function, enable the following special K area
Device area per channels(BIT)
Classification Operation
Channel 0 Channel 1 Channel 2 Channel 3
Revolution/unit time 0: disable
%KX4165 %KX4325 %KX4485 %KX4645
command 1: enable
(b) Count function of Revolution/Unit time is used to count the number of pulses for a specified time while auxiliary
mode enable signal is On so that the number of revolution per unit time is calculated as follow.
1
unit time ms
pls 1000
Input pluse Revolution / Unit time
sec number of pulses per a revolution pls
(c) Number of Revolution per 1 second is indicated after number of pulse per 1 revolution is set and time is set to 1
second (1000ms). In order to indicate by Revolutions per minute (RPM), set the Unit time to 1
minute(60,000ms).
(d) In case of that number of pulse per 1 revolution set to ‘10’, the example of calculating Revolution/Unit time is as
shown below.
Current count
700
600
400
350
300
190
100 Count starting point
0
Revolution
per unit time
30
25
21
10
0
Setting time Setting time Setting time Setting time
Revolution per
unit time function
enabled
▪ Count latch function is operated when Count latch signal is On. Namely, counter value is not cleared when power
supply Off =>On and mode change, it is counted from previous value.
▪ In latch counter function, internal or external preset function has to use for clearing present value.
• Preset command is specified through the following special K area, external preset is used by executing the
designated input contact point after allowance bit is on.
Area per each channel (BIT)
Type Ref.
Ch.0 Ch.1 Ch.2 Ch.3
Internal preset
%KX4161 %KX4321 %KX4481 %KX4641 -
command
External preset
%KX4162 %KX4322 %KX4482 %KX4642 -
allowance
External preset
%IX0.0.4 %IX0.0.5 %IX0.0.6 %IX0.0.7 -
command
• External preset is executed in case of that rising edge of external preset input contact is occurred when external
preset allowance is enabled.
Setting value is saved at the following special K area and user can designate directly.
Area per each channel (WORD)
Class Operation
Ch.0 Ch.1 Ch.2 Ch.3
Frequency 1, 10, 100,
%KW324 %KW354 %KW384 %KW414
Measuring Period 1000 Hz
2) Set Frequency measurement enable flag to ‘Enable’ when using frequency measurement function.
Area per each channel (BIT)
Class Operation
Ch.0 Ch.1 Ch.2 Ch.3
Frequency
0: disable
measurement enable %KX4168 %KX4328 %KX4488 %KX4648
1: enable
command
4) Frequency input mode can be specified as below, whose update cycle and resolution will be decided based
on the applicable mode.
Frequency unit setting Unit[Hz] Updated cycle[ms]
0 1 1000
1 10 100
2 100 10
3 1000 1
5) In case of setting up the frequency unit to 1Hz, the operation of frequency measurement function is as
show below.
Current count
700
600
400
350
300
190
100 Count starting point
0
Input frequency
300
250
210
100
0
Revision Revision Revision Revision
Frequency Cycle Cycle Cycle Cycle
Measurement
enable
Set the count pause signal to On when using count pause function.
Area per each channel (BIT)
Class Operation
Ch.0 Ch.1 Ch.2 Ch.3
0: disable
Count pause %KX4170 %KX4330 %KX4490 %KX4650
1: enable
Current Count
300
-200
Count pause
enable
COM
A5V
F.G 0V 24V
- +
24V DC
F.G 24V 0V
- +
24V DC
Ring counter
-2,147,483,648 ~ 2,147,483,645 %KD154 %KD169 %KD184 %KD199 DWord
min. value setting
Ring counter
-2,147,483,646 ~ 2,147,483,647 %KD155 %KD170 %KD185 %KD200 DWord
max. value setting
Comp. output
-2,147,483,648 ~ 2,147,483,647 %KD156 %KD171 %KD186 %KD201 DWord
min. value setting
Comp. output
-2,147,483,648 ~ 2,147,483,647 %KD157 %KD172 %KD187 %KD202 DWord
max. value setting
HFFFF No use
h0000 %QX0.0.1
h0001 %QX0.0.2
h0002 %QX0.0.3
h0003 %QX0.0.4
h0004 %QX0.0.5
h0005 %QX0.0.6
Comp. output 0 h0006 %QX0.0.7
point h0007 %QX0.0.8 %KW320 %KW350 %KW380 %KW410 Word
designation h0008 %QX0.0.9
h0009 %QX0.0.10
h000A %QX0.0.11
h000B %QX0.0.12
h000C %QX0.0.13
h000D %QX0.0.14
h000E %QX0.0.15
h000F %QX0.0.16
HFFFF No use
h0000 %QX0.0.1
h0001 %QX0.0.2
h0002 %QX0.0.3
h0003 %QX0.0.4
h0004 %QX0.0.5
h0005 %QX0.0.6
Comp. output 1 h0006 %QX0.0.7
point h0007 %QX0.0.8 %KW321 %KW351 %KW381 %KW411 Word
designation h0008 %QX0.0.9
h0009 %QX0.0.10
h000A %QX0.0.11
h000B %QX0.0.12
h000C %QX0.0.13
h000D %QX0.0.14
h000E %QX0.0.15
h000F %QX0.0.16
h0000 1Hz
Frequency Word
h0001 10Hz
Measurement %KW324 %KW354 %KW384 %KW414
h0002 100Hz
cycle setting Word
h0003 1000Hz
Remark
If two and more errors occur, the module displays the latest error code.
(b) Selecting high-speed counter opens a window to set high-speed counter parameters as follows.
(Every parameter settings are saved in the special K device area.)
(c) Turn ‘ON’ the high-speed counter Enable signal (CH0:%KX4160) in the program.
(d) To use additional functions of the high-speed counter, you needs to turn on the flag allowing an operation
command.
* Refer to <4.3.1 Special Area for High-speed Counter>
For instance, turn on K2605 bit if among additional functions in order to use revolution time per unit time function.
(b) Clicking 『Monitor』 shows monitor and test window of high-speed counter.
Item Description
FLAG Monitor Show flag monitoring and command window of high-speed counter
Start Monitoring Start monitoring each item (special K device area monitor).
Write each item setting to PLC.
Test
(Write the setting to special K device)
Close Close monitor
(c) Clicking 『Start Monitoring』shows the high-speed counter monitor display, in which you may set each
parameter. At this moment, if any, changed values are not saved if power off=> on or mode is changed.
(d) Clicking『FLAG Monitor』 shows the monitor of each flag in high-speed counter, in which you may direct
operation commands by flags (clicking commands reverse turn).
At this time, PLC becomes control device for this system, output temperature of heating system becomes target for control. And
temperature sensor and valve becomes devices to detect and manipulate the status of system respectively. If temperature sensor
detects the output temperature and inputs that to PLC, PLC manipulate the valve status through PID operation and control the quantity
of gas that goes into heating system. So temperature of heating system changes. This process is called control loop and PID control is
executed by repeating the control loop. The control loop is repeated with a cycle of ms ~ s.
E SV PV (5.2.1)
MV P K P E (5.2.2)
KP
MVi
Ti Edt (5.2.3)
dE
MVd K PTd (5.2.4)
dt
MV MVP MVi MVd (5.2.5)
PID control operation expressions of ML50 series are more complicate than expression (5.2.1) ~ (5.2.5) mathematically but those are
based on the above expression. The followings describe the characteristics of control process with an example that controls the output
temperature of heating system in figure 5.1. At this example, the system and PID parameters imaginary to help the comprehension
and those may be different with real heating system. If the heating system in figure 5.1 is expressed as second order system with
transfer function like expression (5.2.6) in frequency domain, it is expressed as differential equation like expression (5.2.6) in the time
domain.
32 (5.2.6)
Transfer function =
(2s 1)(3s 5))
6 d 2 y (t ) 13 dy(t ) (5.2.7)
5 y (t ) x(t )
32 dt 2 32 dt
That is, x(t) is Manipulated value and y(t) is Process value.
At this system, we assume that the PID parameter is specified as shown below to describe the PID control operation.
At this system, if we assume that target value of output temperature is 50℃ and initial value of output temperature is 0℃, SV and PV
becomes 50 and 0 respectively. In case of this, PID controller acts as follows.
MV P E K P (5.2.8)
MV0 50 5 250
(5.2.9)
Proportional
Time Target temp. Output temp. Error
coefficient
0 50 5 0 50
1 50 5 44.98 5.02
2 50 5 53.08 -3.08
3 50 5 50.15 -0.15
4 50 5 48.42 1.58
5 50 5 48.28 1.72
6 50 5 48.44 1.56
7 50 5 48.49 1.51
8 50 5 48.49 1.51
9 50 5 48.49 1.51
Max. overshoot
Offset
(b) Concerning the result of simulation, it has the maximum overshoot of about 23.4℃at 0.62s and after 7s, it converges at 48.49℃
with offset of 1.51℃(about 3%).
(c) Offset is an unavoidable error when only P control is executed. Offset decreases proportional to P coefficient but overshoot
increases proportional to P coefficient. Table 5.3 and Figure 5.3 is simulation of offset and overshoot according to P coefficient.
Target
Time Kp = 5 Kp = 2.5 Kp = 1
temperature
0 50 0 0 0
1 50 45.02 63.46 46.67
2 50 53.11 42.52 46.77
3 50 50.15 47.93 41.38
4 50 50.22 47.25 41.60
5 50 48.27 46.96 43.30
6 50 48.35 46.92 43.25
7 50 48.44 46.90 43.21
8 50 48.53 46.90 43.18
9 50 48.53 46.90 43.18
<Table 5.3 Temperature- time table according to P coefficient>
(c) Considering table 5.3, as P coefficient decreases, offset increases but overshoot decreases.
(d) Generally, offset can’t be solved with only P control. In order to remove the offset, P control and I control is used together.
KP
Edt
(5.2.9)
MVi
Ti
(a) In the expression 5.2.9, Ti means the time takes for MVi, output by I control, to be added into real output.
(b) Generally, I control is used with P control. So the expression of PI control is as follows.
KP
Edt
MV MV P MVi E K P (5.2.10)
Ti
(c) In the above heating system, the simulation results are as shown in the table 5.4 when proportional coefficient is 2.5 and
integral time is 1.5s.
Proportional
Time Target temp. Integral time P Control PI Control
coefficient
0 50 2.5 1.5 0 0
1 50 2.5 1.5 63.46 74.41
2 50 2.5 1.5 42.52 40.63
3 50 2.5 1.5 47.93 52.99
4 50 2.5 1.5 47.05 49.67
5 50 2.5 1.5 46.96 49.70
6 50 2.5 1.5 47.12 50.38
7 50 2.5 1.5 47.03 49.76
8 50 2.5 1.5 47.07 50.14
9 50 2.5 1.5 47.06 49.94
10 50 2.5 1.5 47.06 50.02
11 50 2.5 1.5 47.06 49.99
12 50 2.5 1.5 47.06 50.00
13 50 2.5 1.5 47.06 50.00
14 50 2.5 1.5 47.06 50.00
15 50 2.5 1.5 47.06 50.00
< Table 5.4 Temperature- time table according to P coefficient >
(d) Considering table 5.4 and Figure 5.4, if P and I control is used together, offset is removed and temp. converges at 50℃, target
temp. after 12s
(e) But in this case, convergence time is longer than that of P control and overshoot is larger. Generally, as integral time increases,
overshoot decrease. About this, refer to the Figure 5.5.
(f) Like this, if I control is used, overshoot is larger. According to system, large overshoot can be problem. In order to solve this, PID
control is used.
dE (5.2.11)
MVd K PTd
dt
(a) In the expression 5.2.11, Td means the time takes for MVd output by I control, to be added into real output.
(b) Generally, D control is not used solely but with PD control. So PID control is expressed as expression 5.2.12.
KP
dE (5.2.12)
MV MV P MVi MVd E K P Edt K pTd
Ti dt
(c) The Figure 5.6 is simulation result when PID control is applied to above heating system.
(d) Considering table 5.5, in case PID control is used, max. overshoot decreases from 16.5℃ to 8.5℃. At this time, P coefficient,
integral time, derivative time are not optimal values, just one of the examples. Actually, P coefficient, integral time, derivative
time values vary according to PID control system.
Item Specifications
No. of loops 16 Loop
Proportional constant(P) Real number (0 ~ 3.40282347e+38)
Scope of
setting PID Integral constant(I) Real number (0 ~ 3.40282347e+38), unit: second
constants
Differential constant(D) Real number (0 ~ 3.40282347e+38), unit: second
Scope of set value INT (-32,768 ~ 32,767)
Scope of present value INT (-32,768 ~ 32,767)
Scope of maneuver value INT (-32,768 ~ 32,767)
Scope of manual maneuver value INT (-32,768 ~ 32,767)
Operation: PID RUN Flag On (by loops)
RUN/STOP
Stop: PID RUN Flag Off (by loops)
Normal: PID Error Flag Off (by loops)
Indication Error Error: PID Error Flag On,
Error code occurrence (by loops)
Normal: PID Warning Flag Off (by loops)
Warning Error: PID Warning Flag On,
Warnig code occurrence (by loops)
Control operation Control of P,PI,PD and PID, control of forward/reverse operation
Control interval 10.0ms ~ 6,553.6ms (0.1msUnit)
PWM output Supportable
Mixed forward/reverse
Supportable
output
Limiting change of
INT (-32,768 ~ 32,767)
present value
Limiting change of
INT (-32,768 ~ 32,767)
maneuver value
Equally dividing set
Additional 0 ~ 65,536 (frequency of control cycle time)
value
functions Present value follow-up 0 ~ 65,536 (frequency of control cycle time)
Cascade control Supportable.
Min./max. present value -32,768 ~ 32,767
Differential filter 0.01 ~ 655.35 (x 100 Scaled Up)
Dead band setting 0 ~ 65,535
Prevention of dual
Supportable
integral accumulation
PID operation pause Supportable
< Table 5.6 built-in PID control performance specification >
(b) If selecting PID Control, it shows the PID control parameter setting window as in below figure.
RUN mode Set the operation mode of PID control. Auto/manual operation
RUN direction Set the operation direction of PID control. Forward/reverse
Prevention of dual integral
Set whether to allow dual integral accumulation. Disabled/enabled
accumulation
PWM output Set whether to allow PWM output of maneuver value. Disabled/enabled
Operation cycle time Set the operation cycle time of PID control cycle. 100 ~ 65535
Set value Set target control value. -32,768 ~ 32,767
Proportional gain Set proportional gain. Real number
Integral time Set integral time. Real number
Differential time Set differential time. Real number
Limiting change of present value Set the limited change of present value per operation cycle. -32,768 ~ 32,767
Limiting change of maneuver value Set the limited change of maneuver value per operation cycle. -32,768 ~ 32,767
Max. maneuver value Set the max. maneuver value for control. -32,768 ~ 32,767
Min. maneuver value Set the min. maneuver value for control. -32,768 ~ 32,767
Manual maneuver value Set the manual maneuver value for control. -32,768 ~ 32,767
DeadBand setting Set the deadband width of the set value. 0 ~ 65,535
Differential filter value Set the filter coefficient of differential operation. 0 ~ 65,535
PWM junction Set the junction to which PWM output is out. P20 ~ P3F
PWM output cycle Set the output cycle of PWM output. 100 ~ 65,535
Set value ramp Set the frequency of set value ramp. 0 ~ 65,535
Present value follow-up Set the follow-up frequency of the present value follow-up function. 0 ~ 65,535
Min. present value Set the min. value of the input present value. -32,768 ~ 32,767
Max. present value Set the max. value of input present value. -32,768 ~ 32,767
< Table 5.7 PID function parameter setting items >
Drive saturation
Target
value
MV
Integral accumulation phenomenon
Time
< Figure 5.9 Integral accumulation phenomenon >
Ex) if PWM output cycle: 1 second, PWM output junction: %QX0.0.0, max. output: 10000, min. output: 0
Time Output %QX0.0.0 junction operation
0 sec 5000 0.5 sec On, 0.5 sec Off
1 sec 3000 0.3 sec On, 0.7 sec Off
MV = 5000 MV = 3000
0.5sec 0.5sec 0.3sec 0.7sec
P20 output 출력
(%QX0.0.0 주기 =
output) 1초
Time
Output cycle = 1sec Output cycle = 1sec
(l) Max. MV
It sets the max. value of control output that may be output by the result of PID operation. The available scope is between -
32,768 ~ 32,767. if it exceeds the max. output designated by PID operation result, it outputs the set max. output and alerts the
max. output excess warning. For the types and description of warnings, refer to Error/Warning Codes.
(m) Min. MV
It sets the min. value of control output that may be output by the result of PID operation. The available scope is between -
32,768 ~ 32,767. If it is smaller than the min. output value designated by PID operation result, it outputs the set min. MV and
alerts the min. output shortage warning. For the types and description of warnings, refer to Error/Warning Codes.
(n) Manual MV
It sets the output when the operation mode is manual. The available scope is between -32,768 ~ 32,767.
DeadBand
PV
If setting deadband as in the figure, the PID control built in ML50 may regard the error between PV and set value as 0 as long
as PV is within the available scope of deadband from set value.
That is, in this case, the change of MV is reduced. The available scope of setting is between 0 ~ 65,535 and if it is set as 0, it
does not work.
Modified 시간
SV
If SV Ramp is used
Existing SV * operation
SV cycle
T
i
Sof t Mast er
m
[ Figure 5.12 SV Ramp function ] e
(r) Min./max. PV
It sets the min./max. value entered as the present value of PID control. The available scope is between -32,768 ~ 32,767.
Data
Loop K area IEC type Symbol Default Description
type
PID output designation
K12000~F %KX19200~15 _PID_MAN Bit Auto
(0:auto, 1:manual)
K12010~F %KX19216~31 _PID_PAUSE Bit RUN PID pause (0:RUN, 1:pause)
Control direction(0:forward,
K12020~F %KX19232~47 _PID_REV Bit Forward
1:reverse) operation control
Dual integral accumulation
K12030~F %KX19248~63 _PID_AW2D Bit Disabled Prevention
(0:enabled, 1:disabled)
PID remote operation
K12040~F %KX19264~79 _PID_REM_RUN Bit Disabled
(0:disabled, 1:enabled)
Data
Loop K area IEC type Symbol Default Description
type
K1230 %KW1230 _PID00_PV_old INT - PID PV of previous cycle
K1231 %KW1231 _PID00_MV INT 0 PID MV
K1200 ~ K1211 areas are the common bit areas of PID loops while each bit represents the status of each PID control loop.
Therefore, each 16 bits, the max number of loops of ML50 PID control represents loop status and setting respectively. K1216 ~
K1255 areas are K areas for PID control loop 0 and save the loop 0 setting and status. It also contains parameters such as SV,
operation cycle, proportional coefficient, integral time and differential time set in the built-in parameter window and the ML50 built-
in PID function executes PID control by each device value in question. In addition, the output data such as MV calculated and
output while PID control is executed is also saved into the K areas. By changing the values in K areas, control setting may be
changed any time during PID control.
Remark
By changing value of area, you can change control setting whenever you want during the PID control
1) PID control flag expression : _PID[n]_xxx
[n] : loop number
xxx : flag function
Ex) _PID10_K_p : means K_p of loop 10.
It determines whether to operate the PID control of n loop automatically or manually. For more information about RUN
mode, refer to 5.4.1 PID control parameter setting. If the bit is off, it operates automatically; if on, it runs manually.
It changes PID control of n loop to pause status. If PID control is paused, the control MV is fixed as the output at the time
of pause. At the moment, PID operation is continued internally with output fixed. If changing pause status to operation
status again, it resumes control, so it may take a longer time until the PV is going to SV once system status is largely
changed during pause. If the bit is off, it cancels pause; if on, it operates as paused.
It sets the RUN direction of PID control of ‘n’th loop. For more information about run direction, refer to 7.2.3 PID control
parameter setting. If the bit is off, it operates normally; if on, it operates reversely.
It sets enable/disable of dual integral accumulation prevention of ‘n’th loop. For more information about dual
integral accumulation prevention, refer to 7.2.3 PID control parameter setting. If the bit is off, it is enabled; if
on, it is disabled.
ML50 series built-in PID function can be started by both run from command’s start junction and remote run bit setting.
That is, ML50 starts PID control if PIDRUN command’s start junction is on or remote run setting bit is on. Namely, if one
of them is on, it executed PID control.
It determines whether to output the MV of PID control of ‘n’th loop as PWM output. For more information about PWM
output, refer to 5.2.3 PID control parameter setting. If the bit is off, it is disabled; if on, it is enabled.
It indicates the PID control RUN status of ‘n’ th loop. If a loop is running or paused, it is on while if it stops or has an error
during RUN, it is off. In the area as monitoring area, it is changed to the current run status by PLC although a user enters
any value temporarily.
It indicates warning if any warning occurs during PID control of ‘n’th loop. Once a warning occurs during PID control
operation of a loop, it is on while if it is normal, it is off. At the moment, despite of warning, PID control continues without
interruption, but it is desirable to check warning information and take a proper measure. Once a warning occurs, the
warning code is also indicated in warning code area of a loop. For more information about the types of warning codes
and measures, refer to 5.5. In the area as monitoring area, it is changed to the current run status by PLC although a user
enters any value temporarily.
IIf an error that discontinues running during PID control of ‘n’ th loop occurs, it indicates the error’s occurrence. If an error
generates warning, it is on; if normal, it is off. When an error occurs, PID control stops and MV is output as the min. output
set in parameter. Also, if an error occurs, the error code is indicated in the error code area of a loop. For more information
about type of error codes and measures, refer to 5.5. In the area as monitoring area, it is changed to the current run
status by PLC although a user enters any value temporarily.
This allows to not only determine an appropriate MV value through operation so that MV can continue smoothly when the
corresponding PID loop changes from manual to auto output mode, but also reflect the MV value to the internal state so
as to stabilize MV. This function shows an algorithm difference between single operation and cascade operation, but both
operations are performed by this bit.
If the corresponding bit (in cascade operation, the corresponding bit of the master/slave loop is On) is On, Bumpless
changeover is performed. If it is Off, The [Default] Bumpless changeover function is Disabled
It sets/indicates the SV of PID control of ‘xx’ th loop. For more information about SV, refer to 5.2.3 PID control parameter
setting. The available scope is between -32,768 ~ 32,767.
It sets/indicates the operation cycle of PID control of ‘xx’ th loop. For more information about operation cycle, refer to 5.2.3
PID control parameter setting. The available scope is between 100 ~ 65,535.
It sets/indicates the proportional constant of PID control of ‘xx’ th loop. For more information about proportional constant,
refer to 7.2.3 PID Control Parameter Setting.
It sets/indicates integral time of PID control of ‘xx’ th loop. The available scope is real number. If it is set as 0 and lower, it
does not execute integral control.
It sets/indicates differential time of PID control of ‘xx’ th loop. The available scope is real number. If it is set as 0 and lower,
it does not execute differential control.
It sets the MV change limit of ‘xx’th loop. For more information about MV change limit, refer to 5.2.3 PID
control parameter setting. If it is set as 0, the MV change limit function does not work.
It sets the max. MV, min. MV and manual MV of ‘xx’ th loop. For more information about max. MV, min. MV and manual
MV, refer to 5.2.3 PID control parameter setting. If the max. MV is set lower than the min. MV, the PID control loop
generates an error and does not work.
It is the area that receives the present value of ‘xx’ th PID control loop. PV is the present status of the system to control
and is normally saved into U device via input devices such as A/D input module if it is entered from a sensor. The value is
used to execute PID operation by moving to _PIDxx_PV by means of commands like MOV.
The area indicates the PV just before the xx th PID control loop. The flag, as a dedicated monitoring flag, would be
updated by PLC although a user directly enters it.
The area shows the MV of ‘xx’ th PID control loop. As the area in which ML50 built-in PID operation result is output every
PID control cycle, it delivers the value in the area to U device every scanning by using commands like MOV in the
program and outputs to D/A output module, operating a drive.
The areas shows the current error of ‘xx’ th PID control loop. It is also used as an indicator about how much gap the
present status has with a desired status and if an error is 0, it means the control system reaches a desired status exactly.
Therefore, if control starts, error is quickly reduced at transient state and it reaches normal state, maintaining remaining
drift as 0, it could be an ideal control system. The flag, as a dedicated monitoring, is updated although a user directly
enters it.
It indicates ‘n’ th loop MV by classifying proportional control MV, integral control max. MV and differential control MV. The
entire MV consists of the sum of these three components. The flag, as a dedicated monitoring, is updated although a
user directly enters it.
It sets the deadband of ‘xx’ th loop. For more information about Deadband function, refer to 5.2.3 PID control parameter
setting. If it is set as 0, the function does not work.
It sets the differential filter coefficient of ‘xx’ th loop. For more information about differential filter coefficient, refer to 5.2.3
PID control parameter setting. If it is set as 0, the function does not work.
It sets the junction to which PWM output of ‘xx’ th loop is output. PWM output junction is valid only between H’20 ~ H’3F. If
any other value is entered, PWM output does not work.
It sets the PWM output cycle of ‘xx’ th loop. The available scope is between 100 ~ 65,535 at the unit of 0.1ms.
It sets the SV ramp value of ‘xx’ th loop. For more information about SV ramp of PV, refer to 5.2.3 PID control parameter
setting. If it is set as 0, the function does not work.
It sets the PV follow-up SV of ‘xx’ th loop. For more information about PV follow-up, refer to 5.2.3 PID control parameter
setting. If it is set as 0, the function does not work.
It indicates warning code if a warning occurs during ‘xx’ th loop run. The flag, as a dedicated monitoring, is updated
although a user directly enters it. For more information about warning code, refer to 5.5.
It indicates error code if an error occurs during ‘xx’ th loop run. The flag, as a dedicated monitoring, is updated although a
user directly enters it. For more information about warning code, refer to 5.5.
It indicates SV currently running of ‘xx’ th loop. If SV is changing due to SV ramp or PV follow-up function, it shows the
currently changing PV. The flag, as a dedicated monitoring, is updated although a user directly enters it.
It describes PID control commands used in ML50 series. The command type of PID control used in ML50 series built-in PID
control is 4.
(1) PIDRUN
PIDRUN is used to execute PID control by loops.
- Operand S means the loop no. to execute PID control and avaiable only for constant(0~15).
- If start signal contact is on, the PID control of a loop starts.
Item Indication Flag name Contents
16#0001 PV_MIN_MAX_ALM Current value exceeds range of maximum, minimum value
16#0002 PID_SCANTIME_ALM Operation cycle is too short.
Variation of current value of this PID cycle exceeds the current value
16#0003 PID_dPV_WARN
variation limit.
Variation of manipulated value of this PID cycle exceeds the
ALARM 16#0004 PID_dMV_WARN
manipulated value variation limit.
Manipulated value of this PID cycle exceeds maximum manipulated
16#0005 PID_MV_MAX_WARN
value.
Manipulated value of this PID cycle is smaller than minimum
16#0006 PID_MV_MIN_WARN
manipulated value.
Maximum manipulated value is set to be smaller than minimum
16#0100 MV_MIN_MAX_ERR
manipulated value.
Maximum current value is set to be smaller than current manipulated
16#0200 PV_MIN_MAX_ERR
value.
16#0300 PWM_PERIOD_ERR PWM output cycle is set to be smaller than 100(10ms).
In case of forward operation, set value at start of auto-tuning is
16#0400 SV_RANGE_ERR smaller than current value. In case of reverse operation, set value at
start of auto-tuning is larger than current value.
16#0500 PWM_ADDRESS_ERR PWM output is set as contact point other than %QX0.0.0~0.0.31.
16#0600 P_GAIN_SET_ERR Proportional constant is set to be smaller than 0.
ERROR 16#0700 I_TIME_SET_ERR Integral constant is set to be smaller than 0
16#0800 D_TIME_SET_ERR Differential constant is set to be smaller than 0
CONTROL_MODE_ER
16#0900 Control mode is other than P, PI, PD and PID.
R
16#0B00 PID_PERIOD_ERR; PIC operation cycle is set to be smaller than 100(10ms)
In combined operation, directional parameter of forward operation loop is
16#0C00 HBD_WRONG_DIR set as reverse operation or directional parameter of reverse operation
loop is set as forward operation
HBD_SV_NOT_MATC
16#0D00 In combined operation, set values of two loops are different
H
16#0E00 LOOP_EXCEED PID LOOP number is larger 15
(2) PIDCAS
PIDCAS is a command to execute CASCADE control.
- Operand M and S mean master loop and slave loop respecively and available only for constant(0~15).
- If start signal contact is on, cascade control is executed through master loop and slave loop.
Cascade control is called a control method which is intended to increase control stability through quick removal of
disturbance by connecting two PID control loops in series and is structured as follows.
Looking at the figure, it is found that cascade control contains slave loop control within external control loop. That is, the
control output of external loop PID control is entered as SV of the internal loop control. Therefore, if steam valve suffers
from disturbance in the figure, single loop PID control may not be modified until PV, y(s) appears while cascade control is
structured to remove any disturbance by the internal PID loop control before any disturbance that occurs in its internal
loop affects the PV, y(s), so it can early remove the influence from disturbance.
ML50 internal PID control connects two PID control loops each other, making cascade control possible. At the moment,
MV of external loop is automatically entered as the SV of internal loop, so it is not necessary to enter it through program.
(3) PIDHBD
PIDHBD is a command to execute the mixed forward/reverse E control.
- Operand F and R represent forward operation loop and reverse operation loop and available only for constant(0~15).
- If start signal conatact is on, it starts the mixed forward/reverse operation from the designated forward/reverse loops.
The mixed forward/reverse control is called a control method to control forward operation control output and reverse operation
control operation alternatively to a single control process. The ML50 built-in PID control enables the mixed forward/reverse
control by connecting two PID control loops set as forward/reverse operations. At the moment, it uses PIDHBD command.
For more information about the command, refer to 5.2.5. The mixed forward/reverse run is executed as follows in the ML50
built-in PID control.
(c) At the moment, every control parameter uses the parameter of a loop set for forward operation while MV is output to MV
output area of a loop of forward operation. Reversely, every control parameter uses the parameter of a loop set for
reverse operation during reverse operation run while MV is also output to MV output area of reverse operation loop.
At this time, oscillation period is called boundary period. If boundary gain and period is specified, use table 5.9, Ziegler &
Nichols tuning table to specify the PID coefficient. This Relay tuning is relatively simple to configure and easy to know the
boundary gain and period so it is used frequently and ML50 built-in PID auto-tuning uses this method.
Proportional gain
Controller Integral time(Ti) Differential time(Td)
(Kp)
P 0 .5 K u - -
PI 0.45K u Pu / 1.2 -
PID 0 .6 K u Pu / 2 Pu / 8
< Table 5.9 Ziegler & Nichols tuning table >
Item Specifications
Scope of SV INT (-32,768 ~ 32,767)
Scope of PV INT (-32,768 ~ 32,767)
Scope of MV INT (-32,768 ~ 32,767)
Normal: error flag off
Error indication
Error: error flag off, error code occurs
AT direction setting Forward/Reverse
Control cycle 100 ~ 65,536 (0.1msUnit)
Additional PWM output Supportable
function Hysteresis Supportable
[Table 5.10 Spec. of built-in PID auto-tuning function]
(a) If selecting parameter in project window and the built-in parameter, it shows the built-in parameter setting window as
seen in below figure.
(b) If selecting auto-tuning, it shows the parameter setting window as seen in Figure 5.17.
(c) SV
It sets the auto-tuning SV of a loop in question. Similar to PID control, physical values (temperature, flow rate, pressure and
etc) of an object to control is not meaningful and instead, it should use the physical amount of an object to control after
converting them into numerals. For instance, in order to control a system using a sensor that the output is 0V when its
heating device temperature is 0℃ while it is 10V when the temperature is 100℃ as much as 50℃, it is necessary to set
SV as 2000(as long as it uses AD input module MLE-AD04A).
(e) Max./min. MV
It sets the max./min. value of output for auto-tuning. The available scope is between -32,768 ~ 32,767. If the max. MV is set
lower than min. MV, the auto-tuning function of a loop generates an error and does not work.
MV
PV
SV
Hysteresis
SV+Hysteresis
SV- Hysteresis
It determines the run direction of auto-tuning of ‘n’ th loop. If the bit is off, it is forward operation; if on, it is reverse operation.
It sets whether to output the auto-tuning MV of ‘n’ th loop as PWM output. If the bit is off, it is disabled; if on, it is enabled.
It indicates the error in case an error that discontinues operation during auto-tuning of ‘n’th loop occurs. If an error occurs,
it is on; if normal, it is off. Once an error occurs, auto-tuning stops and the MV is output as the min. output set in the
parameter. Also, if an error occurs, it indicates the error code in the error code area of a loop. For more information about
error code types and measures, refer to 5.5. The area, as a dedicated monitor area, is updated although a user directly
enters it.
It sets/indicates the operation cycle of ‘xx’ th loop auto-tuning. The available scope is 100 ~ 65,535.
It sets max. MV and min. MV of ‘xx’ th loop respectively. If the max. MV is set lower than min. MV, the auto-
tuning loop generates an error and does not work.
It sets the junction that PWM output of ‘xx’th loop is output. The PWM output junction is valid only between H’20 ~ H’3F
(hex). If any other value is entered, PWM output does not work.
It sets the PWM output cycle of ‘xx’ th loop. The available scope is between 100 ~ 65,535 at the unit of 0.1ms.
It sets the hysteresis of ‘xx’ th loop. For more information about hysteresis function, refer to 5.3.3 Auto-
Tuning Parameter Setting. If it is set as 0, it does not work.
It indicates error code in case an error occurs during the auto-tuning of ‘xx’th loop. The flag, as a dedicated monitor, is
updated although a user directly enters it. For more information about error code, refer to 5.5.
9) _ATxx_K_p, _ATxx_T_i, _ATxx_T_d (AT result proportional coefficient, integral time, differential time)
The area indicates proportional coefficient, integral time and differential time calculated after the auto-tuning of ‘xx’ th loop
is normally completed. The flag, as a dedicated monitoring, updated although a user directly enters it.
It is the area to receive PV of ‘xx’ th auto-tuning loop. PV is the present status of a system to control and in case of PID
control, the entry from a sensor is saved into U device through input devices such as A/D input module and it moves the
value to _ATxx_PV by using commands such as MOV every scanning, executing auto-tuning.
It is the area to output MV of ‘xx’ th auto-tuning loop. Every auto-tuning cycle, it saves ML50 auto-tuning and it delivers the
value in the area by using commands like MOV in a program and operates a drive every scanning.
1) PIDAT
PIDAT is a command to execute auto-tuning by loops.
- Operand S means the loop no. to execute auto-tuning and avaiable only for constant(0~15).
- If start signal contact is on, the PID control of a loop starts.
Water
level sensor
Tank
수통
Tank
Pump
0~10V
SoftMaster 0~10V
Here, with examples, it explains how to calculate proportional constant, integral time and differential time by using PID auto-
tuning function
(a) If double-clicking Parameter – Built-in Parameter – PID – Auto-tuning parameter in the project window, it opens up the
auto-tuning parameter setting window as illustrated in Figure 5.18.
• SV: 1000(2.5V)
- It shows an example in which MLF-AD04A is set as the voltage input of 0~10V.
• Min. MV: 0
- Min. MV is set as 0. If MV is 0, MLF-DV04A outputs 0V.
• Hysteresis setting: 10
(a) If double-clicking Parameter – I/O parameter, it opens up the setting window as illustrated in figure 5.19.
(b) If selecting A/D module for a slot in A/D input module, it opens up the setting window as illustrated in Figure 5.20.
(c) Check A/D Module operation parameter and click OK. The example is set as follows.
(a) Set the parameter of D/A output module(MLF-DV04A) that output MV to a drive.
How to set them is as same as A/D input module. In the example, it is set as follows.
1) Variable registration
If selecting “Register in Variable/Description” by right clicking in the variable monitor window, “Variable/Device
Selection” window appears. Select “Item” as PID, deselect “View All” and enter 0(means loop number) in
“Parameter No”, K area device list to save every setting and status of loop 0 appears as shown Figure 5.22. Then, if
selecting a variable to monitor and clicking “OK”, a selected device is registered to variable monitor window as
illustrated in Figure 5.23. Through the monitor window, a user can monitor auto-tuning run status or change the
settings.
(b) If right-clicking trend setting, a user can select a variable to monitor as illustrated in Figure 5.25.
(c) For more information about trend monitor, refer to “SoftMaster Use’s Manual.”
▪ PID auto-tuning parameters are set as same as examples of 5.4.2 Example of PID Auto-tuning.
(2) Setting parameters of A/D input module and D/A output module
▪ Set the parameters of A/D input module and D/A output module as same as the example in 5.4.2 Example of PID
Auto-tuning.
(a) If double-clicking Parameter – Built-in Parameter – PID – PID Parameter, it shows the built-in PID parameter setting
window as seen in Figure 5.26.
• SV: 1000(2.5V)
- It shows an example in which MLF-AD04A is set as the voltage input of 0~10V
• DeadBand: 0
- It is set as 0 because the example does not use DeadBand function.
• Min. MV: 0
- Min. MV is set as 0. If MV is 0, MLF-DV04A outputs 0V.
• SV ramp, PV follow-up: 0
- It is not necessary to set SV ramp and PV follow-up because the example does not use them.
1) Devices used
2) Program explanation
a) Since F0099 (always on) is ON if PLC is converted form STOP to RUN, CH0 of A/D and D/A starts operating.
b) Once M0000(%MX0) junction is on, the auto-tuning of loop 0 starts. At the moment, PV entered to CH0 of A/D is
moved to K1875, the PV input device of loop 0 and saved accordingly.
c) The auto-tuning MV of Loop 0 output by PIDAT command is output to D/A output module by line 11, MOV command.
d) Once auto-tuning is complete, it moves P, I, D coefficients generated from auto-tuning to the input devices of P, I and
D, K1218,K1220 and K1222,( %KD934, %KD935, %KD936) sets M001 and starts the operation of PID loop 0.
It describes error codes and warning codes of the ML50 built-in PID function. The error codes and warning codes that may occur
during use of the ML50 built-in PID function are summarized as table. If any error or warning occurs, remove potential causes of the
error by referring to the tables.
It occurs when the period of auto tuning or PID operation loop is set under
H’0003 PWM_PERIOD_ERR
100(10ms). Make sure to set output period more than 100.
H’0004 PID_dMV_WARN It occurs when the PV cycle MV change exceeds MV change limit.
H’0005 PID_MV_MAX_WARN It occurs when the calculated MV of PID cycle exceeds the max. MV.
H’0006 PID_MV_MIN_WARN It occurs when the calculated MV of PID cycle is smaller than the min. MV
Chapter 1 Overview
Part 3 describes the specification, method to use each positioning function, programming and the wiring with external equipment
of embedded positioning function.
1.1 Characteristics
The characteristics of positioning module are as follows.
(5) Self-diagnosis, monitoring and test are available with SM-NM software package.
(a) Monitoring (Module & External Input/output Signal) Function
(b) Trace Function
(c) Trend Function
(d) Reading and Saving Module Parameter/Operation Data
(e) Creation of Cam Data
(f) Providing details about errors and the solution for it
(g) Print Function of various forms
(h) Editing operation data in Excel program is available
(6) Advanced XEM can create positioning tasks that match positioning controls. The positioning task work in cycle as set in
Control period of the Common parameters. Positioning task time is included in control period of common parameter.
Positioning control period error occurs when sum of positioning operation time and positioning task execution time exceed
Control period, which set in Common parameter.
Positioning Stepping
CPU process process Drive
Motor
Set data
Scan, task read, write and Poly phase Pulse Motor
program Position control generator AMP
operation
Describe Representative functions of APM module (Coordinate & Linear Interpolation, Circular Interpolation & Stop) briefly.
[ Example ]
■Starting Position : 1000
■Goal Position : 8000
Value of Forward movement is 7000 (7000=8000-1000)
0 1000 8000
[ Example ]
-2000 0 5000
Y2
Y axis
movement Starting position(X1, Y1) Goal position(X2, Y2)
value
Y1 Operating by linear
X axis interpolation X axis
Reverse Forward
direction direction
X axis movement value
X2
Y axis Reverse direction X1
[ Example ]
■ Starting Position (1000, 4000)
■ Goal Position (10000, 1000)
In this condition, operation is as follows.
Y2
Y axis
movement Starting position(X1, Y1) Linear interpolation end
value position(X2, Y2)
Y1
Movement by Linear interpolation
X axis X axis
Reverse Forward
direction X axis movement value direction
X2
Y axis Reverse direction X1
[ Example ]
■ Starting position (1000, 4000)
■ Goal position (9000, -3000)
In this condition, operation is as follows.
Goal position
Center point
of circular arc
Starting point
Reverse Forward
direction direction
Reverse Origin
direction
3) Control unit “degree” is not available to be used for circular interpolation control.
4) Movement direction is automatically designated by goal position and auxiliary point of circular interpolation
Forward Direction
Goal
Operating by circular interpolation
Position
Starting
position Center point
of circular arc
Radius
Reverse Forward
Direction Direction
Origin
Reverse Direction
2) If the goal position is same as starting position, it is available to have an operation like a circle that has distance
from starting point to auxiliary point as its radius
Forward Direction
Operating by circular interpolation
Center point
of the circle
Starting position
& Goal position
Reverse Forward
Direction Direction
Origin
Reverse Direction
3) Control unit “degree” is not available to be used for circular interpolation control.
4) Direction is determined in setting of “Cir int. mode” (Center point CW, Center point CCW).
Center
point
Operating by circular
interpolation when
Starting Circular angle Circular angle >= 180°
< 180°
Reverse Position Forward
Direction Direction
Origin
Reverse Direction Center
point
2) In radius designation form, goal position can’t be set the same as starting position.
3) Control unit “degree” is not available to be used for circular interpolation control.
4) The direction and arc size are determined in “Cir. int. mode”.
(1) Moves along the designated trace of circular arc depending on circular arc interpolation setting and executes linear
interpolation synchronously.
(2) It is available to execute helical interpolation of more than 360°depending on ‘Circular interpolation turns’ setting.
(3) The combination of axis that used for helical interpolation control is unlimited, 3 axes among axis1 ~ 4 are used.
+Z
End Helical
position Interpolation
Straight
interpolation
Part
+Y
Center
Position
+X
Starting
Position Circular interpolation part
Speed
Time
Operation
Command
In
Operation It will not be ON
even though stop
Signal of positioning
complete
Stop command
(1) After executed by positioning start, reset the current position as 0 and start positioning as much as movement value
already set.
(2) Movement direction is decided by movement value.
(3) Feed control has forward direction operation and reverse direction operation.
(a) Forward direction : Position value >= 0
(b) Reverse direction : Position value <0
(4) Operation timing is as follows.
Speed
Time
Start
In
operation
Position
Time
Current
position value
is 0 when start
Chapter 2 Specifications
Model
MLU-H2/HP type
Items
No. of control axis 2 6
▪2 axis linear interpolation ▪2/3/4 axis linear interpolation
Interpolation function ▪2 axis circular interpolation ▪2 axis circular interpolation
▪3 axis helical interpolation
Control method Position control, Speed control, Speed/Position control, Position/Speed control, Feed control
Control unit Pulse, ㎜, inch, degree
Each axis can have up to 400 operation data .(Operation step number : 1 ∼ 400)
Positioning data
Available to set with software package(XG-PM) or program
Connection USB port of CPU
Common, Basic, Extended, Manual operation, Homing, Input/output signal parameter, Operation data, Cam
SM-PM Setting data
data, Command information
Monitor Operation information, Trace, Input terminal information, Error information
Back-up Save the parameter, operation data in Flash ROM (No need of Battery, Max. 100,000 cycle )
Positioning method Absolute method/Incremental method
Speed/Position,
Absolute Incremental Position/Speed Switching
control
Position address range ㎜ -214748364. 8∼ 214748364. 7(㎛) -214748364. 8∼ 214748364. 7(㎛) -214748364. 8∼ 214748364. 7(㎛)
Inch -21474. 83648 ∼ 21474. 83647 -21474. 83648 ∼ 21474. 83647 -21474. 83648 ∼ 21474. 83647
degree -21474. 83648 ∼ 21474. 83647 -21474. 83648 ∼ 21474. 83647 -21474. 83648 ∼ 21474. 83647
POSITIONING
0 ∼ 2,147,483,647ms
Acc./Dec. time
selection is available from 4 types of acceleration/deceleration pattern
Manual Operation Jog Operation, MPG Operation, Inching Operation
DOG + HOME (Off), DOG + HOME(On), upper limit + HOME, DOG, High speed,
Homing method
Upper/Lower limit, HOME
Model
MLU-H2/HP type
Items
Control Period 1~10ms
Max. speed 200 kpps, (Low-Active)
Connector 40 Pin connector
Size of use cable AWG #24
Supported at
S, H, HP type
3.2 Installation
3.2.1 Installation Environment
This machine has a good reliability regardless of installation environment but cares should be taken in the following items to
guarantee the reliability and safety of the system.
1) The length of connecting cable between positioning module and drive machine shall be as short as possible
(Max. 10m).
2) For alternating current and external I/O signal of positioning module, it is required to use the separate cables to avoid
the surge or induction noise generated from the alternating current.
3) The wires should be selected considering surrounding temperature, allowable current and it is recommended to be
more than max. size AWG22 (0.3㎟).
4) In wiring, if it is too close to the high temperature machine or material or it is directly contacted to the oil for a long time,
the short-circuit will occur that may cause the damage or malfunction.
5) Make sure to check the polarity before applying the external contact signal to the terminal board.
6) In case of wiring the high voltage cable and power cables together, the induction noise occurs that may cause the
malfunction or failure.
7) In case of wiring by the pipe, the grounding of pipe is required.
8) In case that there may be the noise source in wiring between positioning module and drive machine, it is required to
use and connect Twist pair and shielded cable for the wiring of output pulse that comes from the positioning and enters
into the motor drive.
1) The home position signal can be set to %IX0.0.0~%IX0.0.15 throung the input/ouput signal parameter setting
2) Other input signals, except the origin, can set the entire area of I device.
3) For COM for each input, connect the COM contact corresponding to the set I device.
4) The deviation clear signal can set the area of the Q device. set the
5) For COM for deviation clear, connect the COM contact corresponding to the set Q device.
6) EGEAR1, EGEAR2, P_CLR are not allocated. For more information refer to Servo manual.
7) Transister Off time tend to be long when load current is small. In case of reducing off time, add dummy resister as above
wiring.
Stepping
XEM-DN32H2/HP DC 24V DC 5V
Motor Driver
DC24 +24V
CW+ 주5)
CCW+
COM OUT_COM
주3) IN_COM
주1) HOME
주4)
주2) DOG Timing
주2) Limit L
주2) Limit H
COM
1) The home position signal can be set to %IX0.0.0~%IX0.0.15 throung the input/ouput signal parameter setting
2) Other input signals, except the origin, can set the entire area of I device.
3) For COM for each input, connect the COM contact corresponding to the set I device.
4) For the VEXTA RKD series, TIMING output is ‘On’ whenever the motor rotates 7.2 degrees. For accurate homing, T output
and home sensor must be configurated as AND circuits. Do not use TIMING output signal according to the system
characteristics, use the origin sensor for homing signal or homing by the dog signal. (The home input rating of ML50 is DC24V)
5) Only pulse + direction mode can be output, be sure to change the input mode of the stepping motor driver to 1-phase input
mode.
6) In case of using DC24V power, use the proper resistor in series with the driver.
1 cycle finished
Positioning
control task
Input Output Position Waiting Input Output Position
and POS Task POS Task
refresh refresh calculation execution refresh refresh calculation
position
calculation
Waiting while Expansion module
Communicating
Wait for
Scan program Program running
execution
The position control task and the position control operation match the cycle. The processing priority is higher than the scan
program and the existing task program and operates at the same priority level as the position control operation. The position
control task waits while communicating with the expansion unit in the scan program or task program.
the position control task execution time and position control operation time are larger than the positioning control period, the
position control period error occurs and the positioning task does not operate. However, the position control operation operates
even in the error state.
Notes
▶ systems using expansion units, set the position control cycle to at least 3 ms. Expansion unit communication
time takes several hundreds of us to 2ms. Therefore, if the control period is set to 1 ms and an expansion unit is
used, control cycle errors may occur frequently.
Nth Positioning control period N+1th Positioning control period N+2th Positioning control period
Output of N+1th
Pulse output Output of Nth calculation
calculation
( 1 axis Direct start result)
1 th cycle ( 2 axis Direct start result)
finished
M th scan
M th scan program Wait for M th scan program Wait for Starting M+1th scan
Scan program program
running execution running execution program running
running
Starting M+1th
1 axis Direct 2 axis Direct scan program
1axis Direct start 1axis Direct start
input operation input operation
In the scan program as above, when start command is input to different operation axis in the same scan, the start time of
axis operation may be different
In the scan program as above, when input of start command for each different axis comes in the same scan, actual
operating time of each axis should be different.
This chapter describes parameter and operation data to be set by software package with embedded positioning.
Item of Parameter and operation data should be set for each axis(But common parameter shall be applied to all axis)
4.2 기본 파라미
㎜ :1 ∼ 2,147,483,647 [X10-2㎜/min]
Inch : 1 ∼ 2,147,483,647 [X10-3Inch/ min]
Speed limit 1)
degree : 1 ∼ 2,147,483,647 [X10-3 degree/ min]
pulse : 1 ∼ 200,000 [pulse/Sec]
Acceleration time 1
Acceleration time 2
0 ~ 2,147,483,647 [ms]
Acceleration time 3
Acceleration time 4
Deceleration time 1
Deceleration time 2
0 ~ 2,147,483,647 [ms]
Deceleration time 3
Deceleration time 4
Deceleration time for EMG stop 0 ~ 2,147,483,647 [ms]
Pulse per revolution 1 ~ 200,000,000
㎜ : 1 ∼ 200,000,000 [X10-4㎜]
(1 ∼ 200,000,000 [X10-1㎛])
Travel per revolution
Inch : 1 ∼ 200,000,000 [X10-5Inch]
degree : 1 ∼ 200,000,000 [X10-5 degree]
unit (bit 2 ~ 3) 0:Pulse, 1:mm, 2:Inch, 3:Degree
Control word Unit multiplier(bit 4 ~ 5) 0: x 1, 1: x 10, 2: x 100, 3: x 1000
Speed unit (bit 6) 0: unit/time, 1: rpm
Pulse output mode 0:CW/CCW, 1:PLS/DIR, 2:PHASE
㎜ :1 ∼ 2,147,483,647 [X10-2㎜/min]
Inch : 1 ∼ 2,147,483,647 [X10-3Inch/ min]
Bias speed 2)
degree : 1 ∼ 2,147,483,647 [X10-3 degree/ min]
pulse : 1 ∼ 200,000 [pulse/Sec]
1) The mm, inch, degree unit is not available when a value converted to the pulse/sec unit is greater than 200,000.
2) The bias speed can not greater than the speed limit.
Notes
For Deceleration time, when it stops by DEC. stop, DEC. time set in command is applied. At this time, if DEC. time is set
as 0 in command, DEC. time set in basic parameter is applied. In case it stops by EMG stop because of internal factor,
not external factor, EMG stop deceleration time in basic parameter is applied.
In case Transfer amount per revolution (AL) exceeds the above range, The travel per rotation (AI) should be set as follows:
• Transfer amount (AL) = PB ×1/n = Travel per rotation (AI) × Unit multiplier (Am)
[ Note]
In case unit is mm, unit multiplier (Am) can be 1,10,100,1000.
If the value of “PB ×1/n” exceeds 20,000,000.0㎛, it is required to adjust the unit multiplier so that the travel per rotation (Al) does not
exceed 20,000,000.0㎛.
[ Note ]
In case, Unit = mm, Pulse per revolution = 100 pls, Travel per revolution = 10000.0um, Unit multiplier
Available minimum bias speed can be calculated as below.
EX1) Travel per revolution (Al) = 10000.0um, Pulse per revolution(Ap)=1000pls
Trael per pulse = Travel per revolution (Al) / Pulse per revolution (Ap)
= 10000.0um/100pls
= 10.0um/pls = 0.6mm/min.
Note
1. If Bias speed is set as high, total operation time shall be reduced but if the setting value is too high,
it may cause the occurrence of impact sound in the start/end time and forces the excessive effect to the
machine. Cares shall be taken in using..
2. The bias speed should be set within the range as follows :
1) Bias speed ≤ Positioning speed data
2) Bias speed ≤ Homing-low speed ≤ Homing-high speed
3) Bias speed ≤ JOG low speed ≤ JOG high speed
3. It causes error in connection with bias speed in the following example..
1) Bias speed > Positioning speed data : error code 153
2) Bias speed > Homing-high speed : error code 133
3) Bias speed > Homing-low speed : error code 134
4) Bias speed > JOG high speed : error code 121
5) Bias speed > JOG high speed : error code 122
6) Bias speed > inching speed : error code 123
7) Converted Bias speed > 1pulse/s: error code 105
(c) The range check of software upper/lower limit is done at the start of operation and during operating.
(d) If the software upper/lower limit is detected, error (Software upper limit error: 501, Software lower limit error: 502)
occurs and the pulse output of positioning module shall be disabled.
Therefore, when you want to operate again, it is required to reset error and release the ‘output inhibition’ before using.
(e) Setting range
Unit Software upper/lower limit range
pulse -2,147,483,648∼2,147,483,647[pulse]
mm -2,147,483,648∼2,147,483,647[X10-4㎜]
Inch -2,147,483,648∼2,147,483,647[X10-5Inch]
degree -2,147,483,648∼2,147,483,647[X10-5degree]
* Software upper limit value always should be higher than software lower limit, at least same
(f) If the software upper/lower limit was set by default value (upper limit: 2,147,483,647, lower limit: -2,147,483,648) or
same value, then it wouldn’t detect upper/lower limit.
Infinite running
repeat position
(d) As presented in the following figure, if the position moved 1m to the right and again 1m to the left, it is not possible to
reach the original position by backlash. At this time, it is required to add backlash compensation amount.
Gear
1m movement right side (Forward)
Bachlash
Backlash compansation
Bachlash
(e) It compensates by adding backlash compensation pulse to current output pulse within speed limit.
In case backlash compensation amount is bigger than Max. output Pulse (Speed limit ⅹ Control cycle) for
one control cycle, distribute compensation amount to several control cycles
P2 : 1500 P3 : 0
A: 1000 (1500 - compensation amount) {1500 – (compensation amount+1500)}
B: 500
C:0 D: 1500
P0 : 1000 Time
(1000)
Notes
In case backlash compensation is bigger than Max. Pulse (Speed limit ⅹControl cycle) for one control cycle, progress
is as shown below. For example, in case that Speed limit is 100000 and backlash is 250, backlash compensation is
bigger than Max. output Pulse (100000pps ⅹ 0.001s = 100) for one control cycle, and performed for several control
cycles. In this case, the number of output pulse which comes from positioning module per one control cycle is different
according to Acc. time. Compensation pulse is added to above pulse for total pulse output to be smaller than Max.
output pulse for one control cycle. So the number of control cycle compensation acts is different.
Speed
Dwell
Dwell Time
Time
Time
Start
Busy
Position Completion
Speed
Dwell Time
Dwell Time
Time
Start
Busy
Position Completion
Speed
Dwell Time
Time
Start
Busy
Position Completion
PLS/DIR
FP
Forward Reverse
RP
Reverse Forward
Notes
If you execute the next step after the positioning is completed and M code signal is “ON”, the next operation step no. does not work
and the error code(233) will occur. Therefore, in order to execute the positioning of the next operation step number, M code signal
should be “OFF” by “MOF” command
(f) There are two kinds of M code mode according to the output timing of M code signal: With mode and After mode
(In case of setting NONE, There is no M code signal, even if M code No. was set.)
1) With mode
It turns on the M code signal and outputs M code number with start of positioning [Indirect start, direct start and
simultaneous start].
Speed
Time
Indirect start
In operation
M code On signal
M code No. m n 0
2) After mode
It turns on the M code signal and outputs M code number after completion of positioning [indirect start, direct start
and simultaneous start].
Speed
Indirect start
M code on
M code on signal
M code No. 0 m 0 n 0
Synthetic
speed Main axis
Data
Sub Sub
AXIS AXIS
Calculated by PLC Calculated by PLC
Speed Speed
50% 50%
1% 1%
Time
For further information, please refer to operation mode (4) continuous operation of 9.2.2 positioning control.
Arc insertion during 2-axis 0 : Don’t insert When executing 2-axis linear continuous interpolation, doesn’t inserts arc..
linear interpolation
continuous operation 1 : insert arc When executing 2-axis linear continuous interpolation, inserts arc.
For further information about Arc insertion during 2-axis linear interpolation continuous operation, please refer to
(4) 2-axis linear interpolation continuous operation arc insertion of 2-axis linear interpolating control of 9.2.6.
(b) For further information of homing method, please refer to 9.1 homing of chapter 8
Origin
Homing Low Speed Compensation
amount
Homing
DOG
HOME
Completion of
Homing
Notes
When setting the homing speed, it is recommended to set the homing-low speed as low speed as possible.
If setting the low speed as “too fast”, it may cause the incorrect origin signal detection.
(1) If setting the upper limit signal of input signal parameter by A contact and the lower limit signal by B contact, the upper limit
is detected when external upper limit signal is ON while the lower limit is detected when external upper signal is OFF.
(2) If selecting Emergency stop from External stop selection of extended parameter, the external input signal is used by
Emergency stop signal. And if setting Emergency stop signal of input signal parameter by A contact, the positioning
module stop immediately when Emergency stop signal is ON. On the contrary, if setting Emergency stop signal of input
signal parameter by B contact, the positioning module stop immediately when external Emergency stop signal is OFF.
(3) If setting the home signal of input signal parameter by A contact, the origin is detected when external home signal is
‘Rising edge’, while if setting by B contact, the origin is detected when external home signal is ‘Falling edge’.
Speed
Time
Control
period
Setting the axis of ordinates Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
- - - - 축4 축3 축2 축1
Notes
*1 The circular interpolation can not be executed in degree unit. Therefore it is idle to set value at the circular interpolating
auxiliary position item.
Notes
In case of designating step number as ‘0’ with indirect start, Simultaneous start, Position synchronous start, it means
current operation step.
(2) Coordinate
(a) Coordinate of position data includes absolute coordinate and incremental coordinate.
1) Absolute Method
a) This carries out the positioning control from the current position to the goal position
(the goal position assigned by positioning data).
b) Positioning is carried out based on the assigned position of homing (origin address).
c) Transfer direction shall be determined by the current position and goal position.
▶ Start position < Goal position : forward direction positioning
▶ Start position > Goal position : reverse direction positioning
[Example]
■ When current position : 1000 , Goal position : 8000, forward direction transfer amount is 7000(8000-1000).
0 1000 8000
Notes
Positioning by Absolute method (Absolute coordinate) can start only in the state that the origin is determined.
If starting in the state that the origin is not determined, Error will occur.
2) Incremental method
a) This carries out the positioning control as much as goal transfer amount from the current position.
b) Transfer direction shall be determined by the sign of transfer amount..
■ When transfer direction is (+) or no sign : forward direction positioning (position increase direction)
■ When transfer direction is ( - ) : reverse direction positioning (position decrease direction)
Current position
Reverse Forward
Transfer direction when transfer amount is (-) Transfer direction when transfer amount is (+)
[Example]
■ When current position : 5000 , Goal position : -7000, the positioning shall be done at –2000 position.
-2000 0 5000
Notes
Set coordinate and control method in all at the same time in “control method” item with positioning software package.
And the software package “Control Method” item is same as follows
Absolute, Single-axis Positioning Control / Absolute, Single-axis Speed Control
/ Absolute, Single-axis FEED control / Absolute, linear Interpolation / Absolute, Circular Interpolation
/ Relative, Single-axis Positioning Control / Relative, Single-axis Speed Control / Relative, Single-axis FEED control
/ Relative, linear Interpolation / Relative, Circular Interpolation
Notes
Set operation pattern and operation method at the “operation method” item with SM-PM software package.
These are “operation method” item;
Singular,End / Singular,Keep / Singular,Continuous / Repeat,End / Repeat,Continuous / Repeat,Continuous.
(7) M Code
(a) M code is applied to the whole axis in a bundle by M code mode set by positioning parameter and is given to each
operation step no. as a Number within the setting range to use at Program.
(b) The setting range is 1 ∼ 65,535
(c) M code no. can be identified by read by the operation state code
(d) For further information, please refer to M code output of chapter 5.3.2.(7)
(8) Acceleration/Deceleration No
(a) The dual acceleration/deceleration time setting is available by setting the acceleration/deceleration time 1/2/3/ 4 of
basic parameter as acceleration/deceleration no. 1/2/3/4 respectively.
Notes
Positioning software package set as follows at a time;
- circular arc method, circular interpolating direction, circular arc size with ‘Circular interpolating mode’.
Software package ‘Circular interpolating mode’ is as follows ;
- Midpoint / Central point, CW / Central point, CCW / Radius, CW, Circular arc < 180-degree / Radius , CW ,
Circular arc >= 180-degree / Radius, CCW, Circular arc < 180-degree / Radius, CCW, Circular arc >= 180-degree
Memory Address
Description
1 axis 2 axis 3 axis 4 axis 5 axis 6 axis
2A1 32D 3B9 445 4D1 55D Point Operation Step 1
2A2 32E 3BA 446 4D2 55E Point Operation Step 2
2A3 32F 3BB 447 4D3 55F Point Operation Step 3
2A4 330 3BC 448 4D4 560 Point Operation Step 4
2A5 331 3BD 449 4D5 561 Point Operation Step 5
2A6 332 3BE 44A 4D6 562 Point Operation Step 6
2A7 333 3BF 44B 4D7 563 Point Operation Step 7
2A8 334 3C0 44C 4D8 564 Point Operation Step 8
2A9 335 3C1 44D 4D9 565 Point Operation Step 9
2AA 336 3C2 44E 4DA 566 Point Operation Step 10
2AB 337 3C3 44F 4DB 567 Point Operation Step 11
2AC 338 3C4 450 4DC 568 Point Operation Step 12
2AD 339 3C5 451 4DD 569 Point Operation Step 13
2AE 33A 3C6 452 4DE 56A Point Operation Step 14
2AF 33B 3C7 453 4DF 56B Point Operation Step 15
2B0 33C 3C8 454 4E0 56C Point Operation Step 16
2B1 33D 3C9 455 4E1 56D Point Operation Step 17
2B2 33E 3CA 456 4E2 56E Point Operation Step 18
2B3 33F 3CB 457 4E3 56F Point Operation Step 19
2B4 340 3CC 458 4E4 570 Point Operation Step 20
(2) Setting
(a) The command of Teaching data setting is XPM_ATEA
(b) References for XPM_ATEA (command of Teaching) and XPM_WRT (command of Teaching Data Setting ) are
on ‘Chapter 7.3.25’.
(c) In PLC program, in order to carry out the normal action of Teaching command, the Teaching data setting should
be done in the step before Teaching command is executed.
Memory Address
Description
1 axis 2 axis 3 axis 4 axis 5 axis 6 axis
2B6 342 3CE 45A 4E6 572 Simultaneous Start 1axis Step
Number
2B7 343 3CF 45B 4E7 573 Simultaneous Start 2axis Step
Number
2B8 344 3D0 45C 4E8 574 Simultaneous Start 3axis Step
Number
2B9 345 3D1 45D 4E9 575 Simultaneous Start 4axis Step
Number
2BA 346 3D2 45E 4EA 576 Simultaneous Start 5axis Step
Number
2BB 347 3D3 45F 4EB 577 Simultaneous Start 6axis Step
Number
(2) Setting
(a) The command for Step Data of Simultaneous Start setting is XPM_SST
(b) References for XPM_SST (command of Simultaneous Start) on ‘Chapter 7.3.5
(c) In PLC program, in order to carry out the normal action of Simultaneous Start, the Step data setting of
Simultaneous Start should be done in the step before Simultaneous Start command is executed.
(2) Setting
(a) The area of state information of internal memory is the Read only area. Thus, it is available to use only by GET,
GETP command. (PUT, PUTP command is not allowed to use in this area).
(b) The command of State Information ready only is XPM_SRD
(c) If you use only command XPM_SRD, the information of axis status is read at the same time.
(d) If you want to choose to read among the state information, it is available to read memory address of above table
using by GET/GETP
2C0 34C 3D8 464 4F0 57C Operation State Bit Information (LOWER)
Bit 5 No use
Bit 6 Stop state [0: Not stop by stop command, 1: Stop by stop command]
Bit 13 Constant Speed state [0: Not Constant speed, 1: Constant speed]
Memory Address
Information
1 axis 2 axis 3 axis 4 axis 5 axis 6 axis
2C1 34D 3D9 465 4F1 57D Operation State Bit Information
Bit 0 [SNG] Position Controlling [0: Position not in control, 1: Position in control]
Circular Interpolation
Bit 4 [0: Not in operation, 1: In operation]
in Operation
Synchronous Start by
Bit 6 [0: Not in operation, 1: In operation]
Position in Operation
Synchronous Start by
Bit 7 [0: Not in operation, 1: In operation]
speed in Operation
3) Axis Information
Memory Address
Information
1 axis 2 axis 3 axis 4 axis 5 axis 6 axis
2C2 34E 3DA 466 4F2 57E Axis Information
Memory Address
Information
1 axis 2 axis 3 axis 4 axis 5 axis 6 axis
2C3 34F 3DB 467 4F3 57F External I/O Signal State
Bit 0
Bit 1
No use [0]
Bit 2
Bit 3
Bit 4 Upper limit Signal [0: Upper limit Signal OFF, 1: Upper limit Signal ON]
Bit 5 Lower limit Signal [0: Lower limit Signal OFF, 1: Lower limit Signal ON]
Bit 8
Bit 9
Bit 10
Bit 11
No use [0]
Bit 12
Bit 13
Bit 14
Bit 15
(b) If Jog direction is changed during Jog operation, it slows down at first and then operates as the direction it changed.
(c) According to value of Jog low/high Signals, it could operate with low/high speed. When jog low/high signals Off, it
operates with low speed and when they are ON, it operates with high speed.
(d) If you change value of low/high jog signals during Jog operation, there will be no stop and apply the speed as you
changed.
Speed
Time
JOG in
Operation
Forward JOG
Signal
Reverse JOG
Signal
JOG Low/High
Speed Signal
(1) The errors that occur in STAT variables of the positioning function blocks are as follows.
(2) The setting ranges of the position and speed of the positioning function blocks are as follows. In this manual, pulse
and speed are based on the unit of pulse/sec
(3) For the type and size of the data mainly used for the positioning function blocks, refer to the below table.
• Pulse width modulation (APM_PWM) is the operation to turn the output contact on/off with a fixed period and a specified
duty ratio.
• MLU-H2 can output two contacts %QX0.0.0 and QX0.0.1, MLU-HP can output six contacts
• PWM operation can be output with the positioning pulse example, to output PWM to the %QX0.0.0 contact, disabled.
For example, to output PWM to the %QX0.0.0 contact, disable the pulse output enable setting of the positioning 1 axis
basic parameter using % QX0.0.0 contact as output.
Output
DONE : Keeping 1 after the initial operation
STAT : Outputting error No. that occurred during
executing function blocks.
(a) Function
This instruction is used to issue a PWM output command on the MLU-H2/HP output contact.
While the input condition is ON, the pulse is output to the contact specified by ax of ML50 output contact with the
cycle set to n1 and the OFF duty set to n2.
(b) Error
If the value specified FREQ or DUTY is out of the settable range, error codes 603 and 604 are output to STAT,
respectively, and the command is not executed.
Note
• It is not applicable even if the output cycle is changed during PWM output.
Notice
1. Dedicated commands for the embedded positioning can be divided into; the command that works on the rising edge, namely,
when input conditions are “On”, it performs operations only once. To perform operations again, input conditions should be “Off” and
then, “On”; the command that works at a high level, namely, it keeps performing operations while input conditions are “On” and
when input conditions are “Off”, it does not work.
Notice
▷ With the exception of XPM_SRD, XPM_CRD, XPM_ENCRD, the only one positioning function block should be executed
for the axis within a single scan. If you use the program as the below example, the function block will not work properly.
When executing different function blocks When executing the same function blocks
▷ For the different axis, you can simultaneously execute the same function blocks.
However, in the case of XPM_VRD, you cannot simultaneously execute function blocks within a single scan not only
for the same axis but also for different ones. If you execute the XPM_VRD commands at the same time in one scan,
the error code 811 will occur and XPM_VRD will not work after the first XPM_VRD.
(1) If the floating origin setting command is executed, the current position is changed to the origin address of the origin
return parameter, and the origin determination signal (bit) is turned on.
(2) Floating origin setting is set at the current position at the time the command is executed, different from homing, and
can be set only when the axis is not in the operation.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6 (1 axis ~ 6 axis)
(1) The direct start command is designated to the axis specified as AXIS of the embedded positioning.
(2) It can be used when you want to operate directly the machine by setting the target position address, operating speed,
dwell time, M code No., control mode, coordinate, acceleration and deceleration time No. rather than depending on
operating data.
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “Error 6” will occur.
(4) In case of the values set for SPEED, CTRL, TIME_SEL exceed the setting range, “error11” will occur in STAT.
(1) The indirect start command is designated to the axis specified as AXIS of the embedded positioning.
(2) It can be used when you want to operate the machine by setting operation step No. of the axis that is set as operating
data.
(3) In AXIS, you can set up the axis to command and select one among 1 ~ 6. If the values other than set value are
selected, “error 6” will occur.
(4) In case the set value of STEP exceed the setting range (0 ~ 400), “error11” will occur in STAT.
(5) If you set 0 for STEP, the current step will be operated
(6) Depending on the operation pattern of the operated step (END, Keep, Continuous), several steps may be operated
by one indirect start command if the operation pattern is keep or continuous. Continuous operation is available in
case of the continuous parameter allow/disable is set to “allow”.
(7) The linear interpolation and a circular arc interpolation, helical interpolation is performed with indirect start command
by setting control mode of operating data.
(1) The simultaneous start command is designated to the axis specified as AXIS of the embedded positioning.
(2) It can be used when you want to start the operation of more than 2 axis simultaneously.
(3) In A1_STEP ~ A6_STEP, set the number of step to be operated by simultaneous start of each axis from 1 axis to
6 axis.
(4) If the values other than set value are selected, “error 6” will occur. Set each bit by setting as below.
7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
- - 6aixs 5axis 4axis 3axis 2axis 1axis
(1) The speed/position switching control command is designated to the axis specified as AXIS of the embedded
positioning.
(2) When the speed/position control switching command is given to the specified axis where speed operation was
applied, the operation mode will be converted from speed control into position control and positioning operation will
run with the position value set when starting speed control.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The position specified speed/position switching command is designated to the axis specified as AXIS of the
embedded positioning.
(2) When the position specified speed/position switching command is given to the specified axis where speed control
operation was applied, the operation mode will be converted from speed control into position control and then, positioning
operation will run as far as the position travel amount set in POS.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The position/speed switching command is designated to the axis specified as AXIS of the embedded positioning.
(2) When the position/speed control switching command is given to the axis where position control operation was applied
with the determined travel amount, the operation mode will be converted from position control into speed control.
It will run until the factors of stoppage such as deceleration stop, etc occur.
(3) When this command is executed, speed control will be applied with the undetermined origin.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The deceleration stop command is designated to the axis specified as AXIS of the embedded positioning.
(2) If the stop command is given during running by operating data, after deceleration stop, the operation restarts by the
start command.
(3) If deceleration stop command is executed in speed synchronization or position synchronization, CAM operation,
depending on the current operating control state, speed synchronization or position synchronization, CAM operation
will be finished.
(4) The deceleration stop command can be executed not only in acceleration and constant speed area but also
in deceleration area.
(5) The deceleration time that means the time from start to stop can be set in the range of 0 ~ 2,147,483,647ms.
If the value is set as 0, it will stop by the set deceleration time when operation starts.
(6) The deceleration time means the time required from the speed limit of the axis’s basic parameters to stop.
(7) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The skip operation command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used to move to the next step without running the operation step. In other words, stop and end the operation of
the step currently in operation, and continue the operation in the next step.
(3) Each time run this command, it will skip the current operating step and move to the next one.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value
are selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
-2,147,483,648 ∼ 2,147,483,647
Output
DONE : Keeping 1 after the initial operation
STAT : Outputting error No. that occurred
during executing function blocks
(1) The position synchronization command is designated to the axis specified as AXIS of the embedded
positioning.
(2) The axis that gives command is regarded as the minor axis. When the axis set as the major axis reaches
the established synchronized position, the operation step set by the command axis will run.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value
are selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(4) In MST_AXIS, you can set up the major axis of position synchronization among the below range. If the values
other than set value are selected, “error 11” will occur. Setting range: 1 ~ 6(1axis ~ 6axis), 9 ~12(encoder 1 ~ 4)
(1) The speed synchronization command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used to control the operating speed between two axes at the set ratio.
(3) There is no rule about the size between the major axis’s speed ratio and the minor axis’s speed ratio. In other
words, if the major axis’s speed ratio is bigger than the minor axis’s speed ratio, the major axis moves faster than
the minor axis; if the minor axis’s speed ratio is bigger than the major axis’s speed ratio, the minor axis moves faster
than the major axis.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 5axis)
(5) In MST_AXIS, you can set up the major axis of speed synchronization among the below range. If the values other
than set value are selected, “error 11” will occur. Setting range: 1 ~ 6(1axis ~ 6axis), 9~12(encoder 1~4)
(6) Minor axis’s operating direction runs in the same direction of major axis in case of the speed synchronization ratio
(minor axis ratio/major axis ratio) is a positive number, and runs in the opposite direction of the major axis in case of
the speed synchronization ratio is a negative number. For example, if the major ratio is set as 3 and the minor ratio is
set as 2, while major axis moving 3000, minor axis will moving 2000.
(1) The position assigned speed synchronization command is designated to the axis specified as AXIS of
the embedded positioning.
(2) It is used to control the operating speed between two axes at the set ratio. If the minor axis’s position reaches
the point set by POS, it will stop after finishing speed synchronization.
(3) There is no rule about the size between the major axis’s speed ratio and the minor axis’s speed ratio.
Namely, if the major axis’s speed ratio is bigger than the minor axis’s speed ratio, the major axis moves faster than
the minor axis; if the minor axis’s speed ratio is bigger than the major axis’s speed ratio, the minor axis moves faster
than the major axis.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value
are selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(5) In MST_AXIS, you can set up the major axis of speed synchronization among the below range. If the values other
than set value are selected, “error 11” will occur. Setting range: 1 ~ 6(1axis ~ 6axis), 9 ~ 12(encoder 1 ~ 4)
(6) Minor axis’s operating direction runs in the same direction of major axis in case of the speed synchronization ratio
(minor axis ratio/major axis ratio) is a positive number, and runs in the opposite direction of the major axis in case of
the speed synchronization ratio is a negative number. For example, if the major ratio is set as 3, the minor ratio is
set as 2, target position is set as 1,000,000, while major axis moving 3000, minor axis will moving 2000. Likewise,
it will stop when the position of minor axis is 1,000,000.
(1) The position override command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used to change the target position while the command axis is running.
(3) If you perform position override after passing the point for position override, it will stop at the current position and then,
changes its direction and moves to the position set in POR_ADDR.
(4) In POR_ADDR, you can set up the target position to change.
(5) The value set for the position override is absolute coordinate position.
(6) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The speed override command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used to change the operating speed while the command axis is running.
(3) SOR_SPD can be set as “%” or “speed value (unit/time)” based on the values set in “speed override” of the
command parameters.
• In case the unit of speed override value is %, the setting area is 1 ~ 65,535 that indicates 0.01% ~ 655.35%.
• In case the unit of speed override value is speed value, the setting area is 1 ~ speed limit and at this time, the speed
limit is the vale set in “speed limit” of basic parameters. In addition, the unit of speed override value follows the axis’s
unit.
(6) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The position assigned speed override command is designated to the axis specified as AXIS of the embedded
positioning.
(2) It is used to change the operating speed after reaching a certain position in the state that the command axis is running.
(3) PSO_SPD can be set as “%” or “speed value (unit/time)” based on the values set in “speed override” of the
command parameters.
• In case the unit of speed override value is %, the setting area is 1 ~ 65,535 that indicates 0.01% ~ 655.35%.
• In case the unit of speed override value is speed value, the setting area is 1 ~ speed limit and at this time, the speed
limit is the vale set in “speed limit” of basic parameters. In addition, the unit of speed override value follows the axis’s
unit.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The command for continuous operation is sent to the axis specified as AXIS of the embedded positioning.
(2) It is used to move to the next operating step without stopping the command axis in the currently operating step.
(3) When the continuous operation command is executed, the currently operating step No. is changed into the next step
No. and position operation will proceed with the next step’s speed and target position. The connection with the next
step is performed by the continuous operation pattern.
(4) The continuous operation command changes the operation pattern of the currently running step only and does not
change the operation data.
(5) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
Output
DONE : Keeping 1 after the initial operation
STAT : Outputting error No. that occurred during
executing function blocks
(1) The inching operation command is designated to the axis specified as AXIS of the embedded positioning.
(2) Inching operation is a kind of manual operations. It is used to process minute movements as quantitative operation.
(3) The speed of inching operation is set in manual operation parameters.
(4) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The command for returning to the position of pre-manual operation is designated to the axis specified as AXIS of
the embedded positioning.
(2) When the position is changed by manual operation after positioning, the command can be used to return to
the position of pre-manual operation.
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The change start step command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used to change the operation step of the command axis.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range:1 ~ 6(1axis ~ 6axis)
(4) In STEP, you can set up the step No. to start the repetitive operation. The range of set values is 1 ~ 400 and if the
values other than set value are selected, “error 11” will occur.
(1) The repeat operation step no. change command is designated to the axis specified as AXIS of the embedded
positioning.
(2) The command is used to start the operation in a certain operating step by specifying the start step No. of repetitive
operation when running the repetitive operation that the command is given during running with the operation data, it
returns to the repetitive operation step.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(4) In STEP, you can set up the step no. to start the repetitive operation. The range of set values is 1 ~ 400 and if the
values other than set value are selected, “error 11” will occur.
(1) The command for clearing M code is sent to the axis specified as AXIS of the embedded positioning.
(2) In case the M code is set as ‘With’ or ‘After Mode’ in each axis’s parameters, when the command axis’s M code signal
is On, it can be used to turn Off this signal. Namely, it changes the M code signal into Off and M code No. into On.
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(4) It can be performed while operating,
(1) The current position change command is designated to the axis specified as AXIS of the embedded positioning.
(2) The command is used to change the current position into an arbitrary position. If it is executed with the undetermined
origin, the signal for determining the origin will be On and the current position will be changed into the set value
(PRS_ADDR).
(3) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(1) The encoder value preset command is designated to the axis specified as AXIS of the embedded positioning.
(2) The command is used to change the current value of the encoder to the setting value of EPRE_VAL
(3) The input range of EPRE_VAL is “Minimum value of Ring-count ~ Maximum value of Ring-count -1” if the embedded
Positioning set as ring-count.
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(a) The input range of the encoder position value is from the ring-count minimum value ~ ring-count maximum
value -1. If the values other than set value are selected, error code 535 will occur and preset is not performed.
(b) Set the encoder (OP3) value between 0 ~ 3. If the values other than set value are selected, “error 11” will occur
and preset is not performed.
(c) If the major axis to be changed the position is operating, error code 532 will occur, and the preset is not performed.
(d) The encoder value preset command has no area to select the command axis. If an error occurs, it is displayed on
the axis 1 error code.
(e) To operate the encoder value preset command, the high-speed count channel mapped with the encoder must to
be enabled
(1) The teaching array command is designated to the axis specified as AXIS of the embedded positioning.
(2) The speed teaching can be used when a user wants to apply the arbitrary speed value to a specific step’s operating
data; the position teaching can be used when a user wants to set the arbitrary position value for a specific step’s
operating data.
(3) It is used when you want to change the target position or speed values up to 16EA at once by using the multiple
teaching function blocks.
(4) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(5) The teaching command can be executed only when all axis are in a stopped state.
(6) In STEP, you can set the step No. of the operating data to teach and select one among 0 ~ 400. If the values other
than set value are selected, “error 11” will occur.
(7) In TEA_CNT, you can set the number of teaching data up to 16EA. If the values other than set value are selected,
“error 11” will occur.
(8) The operating data that is set as “0” in RAM/ROM and changed by teaching commands is valid only while the power
is On. If you want to maintain the changed operating data even while the power is Off, set the RAM/ROM as “1” and
perform the teaching commands or after teaching operating data, save the changed parameter value to the Flash by
using the commands for saving parameters/operating data(XPM_WRT).
(9) If you change the data through ROM teaching, it will be saved to the FLASH together with the previous operating data
changed by RAM teaching including the operating data changed by the current commands. However, for different
axis other than the relevant ones, the previous data will not be saved to the FLASH.
(1) The basic parameter teaching command is designated to the specified axis in AXIS of the embedded positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the basic parameter teaching commands is
valid only while the power is On. If you want to maintain the changed parameter value even while the power is Off, set
the value as “1” in RAM/ROM and perform the basic parameter teaching commands or after teaching basic
parameters, save the changed parameter value to the Flash by using the commands for saving parameters/operating
data (XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The command for setting basic parameters can be executed only when all axis are in a stopped state.
(5) If you change the data through ROM teaching, it will be saved to the FLASH together with the previous parameters
changed by RAM teaching including the parameters changed by the current commands. However, for different axis
other than the relevant ones, the previous data will not be saved to the FLASH.
(6) You can set up the values for basic parameter items No. as below.
Set value Item Setting range
㎜ : 0 ∼ 2,147,483,647 [X10-2㎜/minute]
2 Acceleration time 1
3 Acceleration time 2
0 ~ 2,147,483,647 [ms]
4 Acceleration time 3
5 Acceleration time 4
6 Deceleration time 1
7 Deceleration time 2
0 ~ 2,147,483,647 [ms]
8 Deceleration time 3
9 Deceleration time 4
10 Abrupt stop deceleration time 0 ~ 2,147,483,647 [ms]
The number of divided output
11
pulses per revolution 1 ~ 200,000,000
12 Travel distance per revolution
13 Unit 0:Pulse, 1:mm, 2:Inch, 3:Degree
14 Unit double precision 0: x 1, 1: x 10, 2: x 100, 3: x 1000
15 Speed command unit 0: unit/time, 1: rpm
16 Bias speed 1 ~ speed limit
17 Pulse output enable 0: disable, 1: enable
(1) The extended parameter teaching is sent to the axis specified as AXIS of the embedded positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the extended parameter setting commands is
valid only while the power is On. If you want to maintain the changed parameter value even while the power is Off, set
the value as “1” in RAM/ROM and perform the extended parameter teaching commands or after teaching extended
parameters, save the changed parameter value to the Flash by using the commands for saving parameters/operating
data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The command for setting extended parameters can be executed only when all axis are in a stopped state.
(5) You can set up the values for extended parameter items No. as below.
mm: 0 ~ 65,535[X10-4㎜]
inch: 0 ~ 65,535[X10-5Inch]
3 Compensation amount of backlash
degree: 0 ~ 65,535[X10-5degree]
pulse: 0 ~ 65,535[pulse]
4 Completion time of positioning 0 ~ 65,535[ms]
5 S-curve ratio 1 ~ 100
mm: 0 ~ 2147483647[X10-4㎜]
2 axis linear interpolated continuous
Inch: 0 ~ 2147483647[X10-5Inch]
6 operation with insertion position of a
degree: 0 ~ 2147483647[X10-5degree]
circular arc
pulse: 0 ~ 2147483647[pulse]
(6) If you change the data through ROM teaching, it will be saved to the FLASH together with the previous parameters
changed by RAM teaching including the parameters changed by the current commands. However, for different axis
other than the relevant ones, the previous data will not be saved to the FLASH.
(1) The homing parameter teaching command is designated to the axis specified as AXIS of the embedded positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the homing parameter teaching commands is
valid only while the power is On. If you want to maintain the changed parameter value even while the power is Off, set
the RAM/ROM as “1” and perform the homing parameter teaching commands or after teaching homing parameters,
save the changed parameter value to the Flash by using the commands for saving parameters/operating
data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~4. If the values other than set value are
selected, “error6” will occur.
(4) The command for setting homing parameters can be executed only when all axis are in a stopped state.
(5) You can set up the values for homing parameter items No. as below.
Set value Item Setting range
time
Homing deceleration
5
time
6 Homing dwell time 0 ~ 65,535[ms]
㎜ : -2147483648 ∼ 2147483647 [X10-3㎜]
Compensation amount Inch : -2147483648 ∼ 2147483647 [X10-5Inch]
7
of origin degree : -2147483648 ∼ 2147483647 [X10-5degree]
pulse : -2147483648 ∼ 2147483647 [pulse]
8 Homing restart-up time 0 ~ 65,535[ms]
0:Approximate origin/origin(Off), 1:Approximate origin/origin(On),
9 Homing mode 2:Upper·lower limit/origin,
3:Approximate origin, 4:High speed origin, 5:Upper·lower limit, 6:Origin
(6) If you change the data through ROM teaching, it will be saved to the FLASH together with the previous parameters
changed by RAM teaching including the parameters changed by the current commands. However, for different axis
other than the relevant ones, the previous data will not be saved to the FLASH.
(1) The manual operation parameters teaching command is designated to the axis specified as AXIS of the embedded
positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the commands for teaching manual operation
parameters is valid only while the power is On. If you want to maintain the changed parameter value even while the
power is Off, set the RAM/ROM as “1” and perform the commands for teaching manual operation parameters or after
setting manual operation parameters, save the changed parameter value to the Flash by using the commands for
saving parameters/operating data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The command for setting manual operation parameters can be executed only when all axis are in a stopped state.
(5) You can set up the values for manual operation parameter items No. as below.
(6) If you change the data through ROM teaching, it will be saved to the FLASH together with the previous parameters
changed by RAM teaching including the parameters changed by the current commands. However, for different axis
other than the relevant ones, the previous data will not be saved to the FLASH.
(1) The I/O signal parameter teaching command is designated to the axis specified as AXIS of the embedded
positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the commands for teaching external signal
parameters is valid only while the power is On. If you want to maintain the changed parameter value even while the
power is Off, set the RAM/ROM as “1” and perform the commands for teaching external signal parameters or after
setting external signal parameters, save the changed parameter value to the Flash by using the commands for
saving parameters/operating data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The command for setting input signal parameters can be executed only when all axis are in a stopped state.
(5) The set value of each external signal setting area indicates the below. 0: A contact, 1: B contact
(6) The external signals allocated for each Bit of I/O signal parameters to change are as follows. If bit set value is 3 (b11),
the signal setting will ignored and maintain previous set value.
Note
To use I/O signal of the MLU-H embedded positioning, must mapped I, Q device.
I, Q device set as %IX0.0.0 or QX0.0.0 for initial value. If you don’t mapping I, Q device on I/O signal and enable I/O
signal to XPM_SIP, it is applied based on the initial setting value.
For proper operation, mapping the I, Q device on each I/O signal using SoftMaster before setting I/O signal parameter
to XPM_SIP.
(1) The common parameter teaching command is designated to the axis specified as AXIS of the embedded positioning.
(2) The parameter value that is set as “0” in RAM/ROM and changed by the commands for teaching common
parameters is valid only while the power is On. If you want to maintain the changed parameter value even while the
power is Off, set the RAM/ROM as “1” and perform the commands for teaching common parameters or after
teaching common parameters, save the changed parameter value to the Flash by using the commands for saving
parameters/operating data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) You can set up the values for common parameter items No. as below.
(5) If you change the data through ROM teaching, the operation data that has been changed to RAM teaching previously
including the operation data changed by the current command is also permanently saved.
(6) The common parameter setting command can be executed when all axes are stopped.
(1) The operation data teaching command is designated to the axis specified as AXIS of the embedded positioning.
(2) The operating data that is set as “0” in RAM/ROM and changed by the commands for teaching operating data is valid
only while the power is On. If you want to maintain the changed operating data even while the power is Off, set the
RAM/ROM as “1” and perform the commands for teaching operating data or after teaching operating data, save the
changed parameter value to the Flash by using the commands for saving parameters/operating data(XPM_WRT).
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The operation data teaching command can be executed while the axis is running, but for the step in operation,
it operates according to the setting value before teaching. When the operation is started again after the end of
operation, the operation is performed according to the setting value changed to teaching.
(5) You can set up the values for operation data teaching items No. as below.
(6) If you change the data through ROM teaching, the operation data that has been changed to RAM teaching previously
including the operation data changed by the current command is also permanently saved.
Output
DONE : Keeping 1 after the initial operation
STAT : Outputting error No. that occurred during
executing function blocks
VAR : PLC device where the read data is stored.
(1) The read variable data command is designated to the positioning module to read directly parameters, operating data,
CAM data.
(2) It is possible to read the desired data by specifying parameters and operating data, CAM data’s module internal
memory address directly.
(3) Among parameters, operating data, CAM data of the embedded positioning, the command is to read as much data
as the “SIZE” in WORDs from the position set as “S_ADDR” in positioning module internal memory to the specified
device of “VAR”. In case “CNT” is more than 2, it reads the blocks one by one, which are as distant as “OFFSET” from
the “S_ADDR” position as many times as “CNT”-1 and saves them to the specified device of “VAR”.
(4) The maximum data size(SIZE x CNT) that can be read with a command is 128 WORD.
(5) The command for “Read Variable Data” can run even during operation.
(6) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(7) In case the size(SIZE x CNT) of the data to read is 0 or exceeds 128 WORD, error “11” will occur in STAT.
(8) Although reading variable data is executed for different axis, it can run only once in one scan. If you run reading
variable data more than twice in one scan, error code(811) will occur and the remaining operations except the first
reading variable data will not work.
(1) The write variable data command is designated to the positioning module to write directly parameters, operating data,
CAM data.
(2) It is possible to write the desired data by specifying parameters and operating data, CAM data’s module internal
memory address directly.
(3) Among parameters, operating data, CAM data of the embedded positioning internal memory, the command is to write
as much data as the “SIZE” in WORDs from the “T_ADDR”position of the PLC program to the specified device of
“VAR”. In case the number of blocks, “CNT” is more than 2, it writes the data one by one to the blocks which are as
distant as “OFFSET” from the ones located in “T_ADDR” position as many times as “CNT”-1.
(4) The maximum data size(SIZE x CNT) that can be written with a command is 128 WORD.
(5) The command for “Writing Variable Data” cannot run during operation.
(6) In AXIS, you can set up the axis to command and select one among 1~6. Establishing the values other than set ones
will lead to “error6”.
(7) In case the size(SIZE x CNT) of the data to read is 0 or exceeds 128 WORD, error “11” will occur in STAT.
(8) If the number of blocks(CNT) is more than 2 and block offset(OFFSET) is smaller than the block size(CNT), the
module internal memory blocks where the data will be written are overlapping so error “11” will occur in STAT.
(9) When executing XPM_WRT, compatibility of data should be checked for all access areas. Especially, the user CAM
area is set as 0 initially but if you input 0 again through XPM_WRT, data compatibility error will occur(error code
704~708). For data setting of the user CAM area, refer to 9.4.4 User CAM Operation.
(1) The emergency stop command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is used when you have to stop the operation immediately due to emergency. The axis where this command is
applied will be in a stopped state.
(3) During Emergency Stop, the deceleration time is the value set in “Deceleration time at abrupt stop” of the basic
parameters of each axis.
(4) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The error reset command is sent to the axis specified as AXIS of the embedded positioning.
(2) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(3) When parameters exceed the setting range or errors occur during operation, the command is used to reset the errors.
(4) In SEL, you can select the error type to reset. If the value is “0”, the error occurred in the command axis of each axis will be
reset. In XEM embedded positioning, the value should be set as “0” all the time. If the value is “1”, “error 11” will occur.
(1) The error history reset command is designated to the axis specified as AXIS of the embedded positioning.
(2) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error 6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(3) When parameters exceed the setting range or errors occur during operation, it saves the errors to the module up to
10. The command is used to reset the error history.
(1) The start-up command is sent to the axis specified as AXIS of the embedded positioning.
(2) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(3) It can be used to operate continuously the machine without a stop by setting operation steps up to 20 during
PTP(Point to Point) operation with only one command. If PST_CNT or PST_VAL has the values other than set
ones, “error6” will occur.
(4) Point operation allows the maximum of 20 point steps. Accordingly, the variables of UNIT array type with 20 elements
can be used for PST_VAL.
(1) The parameter/operation data save command is designated to the axis specified as AXIS of the embedded
positioning.
(2) In AXIS, you can set up the axis to command and select one among 1~4. If the values other than set value are
selected, “error 6” will occur.
(3) After function blocks are normally performed, it saves the current parameters and operating data of the axis set in
WRT_AXIS to the Flash so that the data can be maintained even when the power is off.
(4) For setting WRT_AXIS, select the Bit corresponding to each axis.
(1) The current operating state of the specified axis is read in the AXIS of the embedded positioning.
(2) The read operating data is saved to the variables set in the output of function blocks.
(3) In AXIS, you can set up the axis to command and select one among 1~6(1axis~6axis).
If the values other than set value are selected, “error6” will occur.
(4) You can read and monitor the command position, command speed, current position, current speed, torque, operating
data No., M code values of the set axis or use them as conditions for the user program. (Embedded positioning, there
is no torque data)
(5) “-“ speed of the command speed(CV) or the current speed(SV) indicates the reverse direction.
(6) Embedded positioning is the pulse output type; the current position and the current speed indicate the same values
with the command position, command speed.
(7) TRQ indicates the current Servo Drive’s torque state and XECU embedded positioning that is the pulse output type is
displayed as 0.
(1) The command to read the bit information of the current operating state of the specified axis is sent to the AXIS of the
embedded positioning.
(2) The read bit information of the current operating state is saved to the variables set in ST1 ~ ST7
(3) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error6” will occur.
(4) The details of output variables ST1 ~ ST7 of the function block to read the current operating state bit can be used for
The program.
(1) The encoder value read command is designated to the embedded positioning.
(2) Then, the obtained current values of the encoder are displayed in ENC_VAL,
(3) You can set up the encoder to read in ENC.
(1) The JOG operation command is designated to the axis specified as AXIS of the embedded positioning.
(2) It is the manual operation function for a test and is used to verify the system operations, wiring state, position address
for teaching. You can choose either high speed or low speed.
(3) The operating conditions of JOG function block are level type. Namely, when the access condition of input variables
REQ is On, pulses are output based on the set value; when the access condition of input variables REQ is Off,
it stops.
(4) If you change the set values of LOW/HIGH in the state that operating conditions are On(during JOG operation),
speed will be changed without stopping JOG operation; if you change set values of LOW/HIGH, after deceleration
stop and change of direction, JOG operation will be continued.
(5) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The CAM operation command is sent to the axis specified as AXIS of the embedded positioning.
(2) The command performs CAM operation for the relevant axis by using CAM major axis and CAM data blocks.
(3) When executing the CAM operation command, although the minor axis (one set in AXIS) is displayed as ‘During
Operation’, the motor actually does not run. When the axis set as the major one starts up, the motor starts running to
the position of the minor axis corresponding to the major axis’s position based on CAM data blocks’ values set in
CAM block (CAM_BLK).
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(5) In MST_AXIS, you can set up the major axis of CAM operation among the below range. If the values other than set
value are selected, “error 11” will occur.
Setting range: 1 ~ 6(1axis ~ 6axis), 9 ~ 12 (encoder 1 ~ 4)
(6) In CAM_BLK, you can set up the CAM block No. to run among the below range. If the values other than set value are
selected, “error 11” will occur.
Setting range: 1 ~ 9(block1 ~ block9)
(7) You can set up CAM data in the positioning package with the maximum of 8 blocks.
(8) To use User CAM Operation, set the CAM block No. as 9.
(9) In the case of User CAM Operation, even during operation, you can change the user CAM data with the command
for writing variable data
(10) For more details on User CAM Operation, refer to “9.4.4 User CAM Operation”.
Output
DONE : Keeping 1 after the initial operation
STAT : Outputting error No. that occurred during
executing function blocks
(1) The CAM operation command is designated to the axis specified as AXIS of the embedded positioning.
(2) The command performs CAM operation for the relevant axis by using CAM major axis and CAM data blocks.
(3) When executing the CAM operation command, although the minor axis (one set in AXIS) is displayed as
‘During Operation’, the motor actually does not run. After the axis set as the major one starts up and it moves as far as
the travel amount of the major axis’s offset position, the motor starts running to the position of the minor axis
corresponding to the major axis’s position based on CAM data blocks’ values set in CAM block (CAM_BLK).
(4) In AXIS, you can set up the axis to command based on the below setting range. If the values other than set value are
selected, “error6” will occur. Setting range: 1 ~ 6(1axis ~ 6axis)
(5) In MST_AXIS, you can set up the major axis of CAM operation among the below range. If the values other than set
value are selected, “error 11” will occur. Setting range: 1 ~ 6(1axis ~ 6axis), 9 ~ 12(encoder 1 ~ 12)
(6) In CAM_BLK, you can set up the CAM block No. to run among the below range. If the values other than set value are
selected, “error 11” will occur. Setting range: 1 ~ 9(block1 ~ block9)
(7) You can set up CAM data in the positioning package with the maximum of 9 blocks(User CAM block: 1EA).
(1) The command for ellipse interpolation is sent to the axis specified as AXIS of the embedded positioning.
(2) For the specified step of STEP in the specified axis, the ellipse interpolation is performed at the angle set in DEG in
the ratio set in RATIO.
(3) The ellipse interpolation distorts the operating data of the step that is set as circular interpolation in the ratio of ellipse
ratio(RATIO) and performs ellipse operation at the operating angle set in DEG. Therefore, the step of the operating
data set in STEP should be set up based on circular interpolation control.
(4) The ellipse ratio can be set in the range of 1 ~ 65535 and its unit is [X10-2 %]. Namely, if the value is set as 65535,
you will get 655.35%.
(5) The operating angle can be set in the range of 1 ~ 65535 and its unit is [X10-1 degree]. Namely, if the value is set as
3650, you will get 365.0 degree.
(6) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
(1) The restart command is designated to the AXIS (command axis) of the embedded positioning.
(2) It is used to restart up the axis that went through deceleration stop during operation and the axis where the command
is executed will restart with the previous operating data.
(3) If other operations are performed before restart up the axis that went through deceleration stop, the restart-up
command will not run.
(4) In AXIS, you can set up the axis to command and select one among 1~6. If the values other than set value are
selected, “error 6” will occur.
Chapter 8 Program
Here describes the basic program that operate positioning module case by using its commands.
Set the speed of Jog operation. If Input value is 0, it will execute low speed Jog operation. If Input value is 1, it will
execute high speed Jog operation. Operating speed can be changed in operation.
(j) State of Operation complete
If function block is completed without error, “1” will be outputted and maintain “1” until the next operation. If error
occurred, “0” will be outputted.
(k) Error State
This is the area that output error no. if there are errors in operation of function block.
The condition of parameter setting commands (XPM_SBP, XPM_SEP, XPM_SHP, XPM_SMP, XPM_SIP,
XPM_SCP).
(b Operating state of each axis
According to exercise from “Chapter 8.1.2 Current State Reading,” it is a signal of “Manual Operating” for each axis. It
turns on when it is operating. Inching Operation can not be configured while it is running hence configuration will only
be configured when it is not running. If parameter setting command is executed while axis is running, error 471 occurs.
(c) Error state for each axis
According to exercise from “Chapter 8.1.2 Current State Reading,” it is a signal of “Error state” for each axis. It turns on
when an error occurred. Operation will only work when there is no error. If you want to operate a system regardless of
errors, you can just inactivate the function.
(d) Address of Positioning Module
The high performance MLU embedded positioning is fixed on slot 1.
(e) Axis for command
If you want to make a command for each axis, you must set the axis on which to issue the command.
MLU-HP can control up to 6 axes and MLU-H2 can control up to 2 axes. In command, 1 ~ 6 refer to 1 ~ 6 axis.
(f) Parameter value to change
Set the value of each parameter item to be changed. The values corresponding to the parameters are shown in
“Chapter 7. Function Block”, refer to each parameter setting function block. In the case of the external signal
parameter setting command (XPM_SIP), it becomes the external signal parameter value instead of the specific item
value.
(g) Parameter item to change
Set the item to be changed by the parameter value (f) set in the instruction. When the command is executed,
the parameter value set in this item is changed to the set parameter value (f). The values corresponding to the
parameters are shown in "Chapter 7. Function Block ", refer to each parameter setting function block. In the case of
the external signal parameter setting command (XPM_SIP), this part is not applicable because the entire external
signal parameter value is changed instead of the specific item value
(h) RAM/ROM Setting
Set the changed parameter value only when power is applied to the module (RAM setting), whether to keep
the module even when power is not applied (ROM setting). When the value of this item is set to "0", the RAM setting
becomes the RAM setting and the ROM setting becomes "1". The ROM setting can be performed only when all axes
are stopped. There are no limitations on the number of parameter ROM settings to be performed.
(i) The execution contents of each function block are as follows.
XPM_SBP: Acceleration time 1 of axis 1 basic parameter is set to 1000ms in RAM
XPM_SEP: Axis 2 extended parameter 2 axis linear interpolation continuous operation set the circular insertion
position to 500 by RAM
XPM_SHP: Sets the home position of axis 1 home return parameter to 100
XPM_SMP: Set the jog high speed of axis 2 manual operation parameter to 5000 by ROM setting
XPM_SIP: Axis 2 I / O signal parameter value is 16 # 13 (Preserves upper limit, Does not use lower limit, Near point A
contact point, ROM setting by using deviation clear)
XPM_SCP: ROM setting of % MD24 value of % MB100 item of common parameter
when all axes are stopped. There is no limit to the number of times that ROM teaching is performed.
(h) Teaching item
Set items to be changed by Teaching among operation data items. Items that can be changed by teaching multiple
teaching are "Target position" and "Operation speed". When set to "0", the target position is set. When "1" is set, it
means operation speed.
(i) Number of teaching
Set the number of steps to perform teaching. MLU can teach multiple teaching of max. 16 data.
(j) Address of first device of teaching array data
To execute a Teaching Array, you need to set a specific value first. TWR commands are using for set up those
Teaching Array data. It has to be done before actual Teaching Array operation. Teaching Data will be set up depends
on number of first device as below table.
(j) Address of first device where those data for Teaching Array are saved
In order to perform teaching multiple times, the data values to be taught must be set first. Teaching data is set
according to the head number of the device in the following form.
No. Device No. Teaching array data
1 Device + 0 Teaching array data1
2 Device + 2 Teaching array data2
3 Device + 4 Teaching array data3
4 Device + 6 Teaching array data4
5 Device + 8 Teaching array data5
6 Device + 10 Teaching array data6
7 Device + 12 Teaching array data7
8 Device + 14 Teaching array data8
9 Device + 16 Teaching array data9
10 Device + 18 Teaching array data10
11 Device + 20 Teaching array data11
12 Device + 22 Teaching array data12
13 Device + 24 Teaching array data13
14 Device + 26 Teaching array data14
15 Device + 28 Teaching array data15
16 Device + 30 Teaching array data16
Decide changing position of Direct Start command. In this example above, the initialized value is “device,” but you can
also change it with “real numbers,” which data type is “DINT.”
(h) Direct start target speed
Decide goal speed of Direct Start. In this example above, the initialized value is “device,” but you can also change it
with “real numbers,” which data type is “UDINT.”
(i) Dwell time of Direct Start
Dwell Time consider as a total amount of time from beginning of Direct Start operation that reach to the goal position
and make output of Positioning Done Signal. That means after done its operation, direct Start will make a Positioning
done signal. Its unit is “ms,” and type is “UINT”
(j) Direct Start M code
You can set a value of M code which are displaying of Operating Parameter by Direct Start. The way of M code
outputs are “Parameter Expansion, M code Mode,” within the “None, With, After.” It will make an M code besides you
choose “None” for its parameter. For more information, reference for M code is in the “Chapter 4.3.2”
(k) Control Method
Set direct start control method. Perform the following operation according to the setting value.
0: Position Control
1: Speed Control
2: Feed Control
(l) Coordinate Setting
Set direct start operation coordinates. Perform the following operation according to the setting value.
0: Absolute
1: Relative
(m) Acceleration time number
Sets the acceleration time number for positioning control. Depending on the set value, acceleration is executed at the
corresponding acceleration time of the basic parameter.
0: Acceleration time 1
1: Acceleration time 2
2: Acceleration time 3
3: Acceleration time 4
(n) Deceleration time number
0: Deceleration time 1
1: Deceleration time 2
2: Deceleration time 3
3: Deceleration time 4
(o) Execution complete state
If the function block is completed without error, "1" is output and "1" is maintained until the next execution. If an error
occurs, "0" is output.
(p) Error state
If an error occurs during execution of function block, error number is output
(q) The function block used in the example is as follows.
Axis 1 Direct Start: Position control is performed with axis 1 target position% MD80 (axis 1 target position),
target speed% MD81 (axis 1 target speed), dwell time 100 ms, M code 0, absolute coordinate, acceleration time 1.
Axis 2 Direct Start: Speed control is performed with axis 2 target position% MD82 (axis 2 target position),
target speed% MD83 (axis 2 target speed), dwell time 500 ms, M code 10, relative coordinate, acceleration time 2,
and subordinate axis is 2:1. Meaning that operational speed ratio of those axes are 2 to 1. So, if main axis is operating
in speed of 10000, subordinate axis will be operating in speed of 5000.
Axis2 Speed Override : The operating speed of axis2 will be changed to 20000 and then continue to operate.
(j) For more information, reference of Speed Override is in the “Chapter 9.5.5.”
(
a) This is the condition for Current Step Change
This is the condition for Current Step Change Command (XPM_SNS). Once Current Step Change is executed, current
operation step will move set step.
(b) Operating state by axis
According to exercise from “Chapter 8.1.2 Current State Reading,” it is a signal of “Operating” for each axis. It turns on
when it is operating. Operating Data Setting can not be configured while it is running hence configuration will only be
configured when it is not running. If you execute Current Step Change while it is running, the “error 441” would be
appeared.
(c) Error state for each axis
According to exercise from “Chapter 8.1.2 Current State Reading,” it is a signal of “Error state” for each axis. It turns on
when an error occurred. Operation will only work when there is no error. If you want to operate a system regardless of
errors, you can just inactivate the function.
(d) Address of Positioning Module
In this example, Positioning Module is fixed at the 1 slot of 0 bases.
(e) Axis of command execution
You can set an axis for Parameter Setting. MLU-HP can control up to 6 axes and MLU-H2 can control up to 2 axes. In
the “execution of axis” from the configuration of Parameter Setting, you can set a value for axis1 through axis6.
(f) Change Step Number
Set change step number by Current Step Change. MLU-HP/H2 support 400 step operation data for each Axis.
Therefore, the range of step number setting of Current Step Change is 1~400.
(g) State of Operation complete
If function block is completed without error, “1” will be outputted and maintain “1” until the next operation. If error
occurred, “0” will be outputted.
(h) Error State
This is the area that output error no. if there are errors in operation of function block.
(i) For more information, reference of Current Step Change is in the “Chapter 9.5.9.”
8.1.7 Error
(1) Error Reset
Chapter 9 Functions
9.1 Homing
Homing is carried out to confirm the origin of the machine when applying the power. In case of homing, it is required to set
homing parameter per axis. If the origin position is determined by homing, the origin detection signal is not recognized during
positioning operation.
NOTE
Homing is performed by receiving signals generated from the outside while rotating the motor.
When the final origin complete signal is input, the home position is completed after stopping.
The signals required for home return are shown below.
(1)HOME signal: It is used as operating sequence and final origin confirmation signal when
detecting origin after approximate origin Off, origin detection after deceleration when
approximate origin On, origin detection by origin and upper / lower limit, origin detection by
origin. To use the origin signal, specify the P device to be mapped to the origin signal of the
external signal parameter and set the corresponding contact level to A contact or B contact.
The P device that can be mapped to the origin signal is the high-performance XBM's built-in
input P
(2)Dog signal: This is the signal used for the operating sequence when determining the home
position by the approximate origin method in the homing method. In particular, it is used as the
final origin determination signal in the home position detection operation by the near home
position. To use the approximate origin signal, specify the P device to be mapped to the
approximate origin signal of the external signal parameter and set the corresponding contact
level to A contact or B contact.
(3)Upper/lower signal: Used to check the upper and lower limits of the machine coordinate during
home return. In particular, it is a signal used for the operation sequence when detecting the
origin by the origin and the upper / lower limit, and the origin by the upper / lower limit. To use
the upper / lower limit signal, specify the P device to be mapped to the upper / lower limit
signal of the external signal parameter and set the corresponding
(4)Deviation clear signal: This signal is used to cancel the residual pulse of servo drive after
completion of origin determination. Since the servo drive must output a deviation count clear
signal before outputting all residual pulses, use the high-performance XBM built-in output as
the P device to be mapped to the deviation counter clear signal as much as possible. When
using the P contact output of the extension module, the output time may not be constant
depending on the position control cycle and the corresponding
(1) Operation
(a) Accelerates to the setting homing direction and acts by homing high speed.
(b) At the rising edge DOG signal it decelerates and acts by homing low speed.
(c) If HOME signal is entered after the DOG signal has changed from “On” to “Off”, the origin shall be determined and
it stops pulse output.
■ Operating Pattern
NOTE
1. While DOG signal maintains “On”, the origin will not be determined by HOME signal.
That is, when DOG signal changes from “Off” to “On”(acceleration section -> homing high speed) , from “On” to
“Off” (deceleration section -> homing low speed) and then when the HOME changes from “Off” to “On”, the origin
will be determined.
The origin is not determined while the DOG “ON”.
Speed
Time
DOG signal
HOME signal
2. While the homing speed acts to the deceleration section by homing high speed after the DOG signal is changed
from “Off” to “On”, from “On” to “Off”, the origin will not be determined even if encounters the HOME input.
The origin is not determined in the deceleration section.
Speed
Time
DOG signal
HOME signal
3. If the DOG signal is changed from “Off” to “On”, from “On” to “Off” and encounters external upper/lower limit while
waiting the HOME input, the action is as follow.
Forward
시간
Reverse
Homing
command
DOG signal
Lower Limit
HOME signal
4. If “On” time of the origin is too short, the positioning module can not recognize it.
HOME
signal
≥1ms
9.1.4 Origin Detection after Deceleration when DOG On(1: DOG /HOME(On))
This is the method using the DOG and HOME signal and the action by homing command is as follows.
(1) Operation
(a) Accelerates to the setting homing direction and acts by homing high speed.
(b) At the rising edge DOG signal it decelerates and acts by homing low speed.
(c) while the DOG signal is “On” and the homing low speed is active, the origin shall be determined if HOME signal is
entered.
■ Operating Pattern
Speed
Deceleration in DOG “ON”
Homing high
speed
Homing low
speed
Time
Homing
command
ON
In homing
State of origin-
fixed
Note
1. Once the DOG signal is “On”, when the homing speed acts from high speed to low speed via deceleration
section, if the HOME is entered in the state that the DOG signal is “ON”, the origin will be determined promptly.
That is, The origin will not be determined by the HOME signal during the decelerating.
2. When encounters the Upper/Lower limit signal before HOME after the DOG signal has changed from “Off” to
“On”, the action will be the same as the method of Article 9.1.3
3. If “On” time of HOME signal is short, the positioning module can not recognize it.
9.1.5 Origin Detection by Origin and High/Low Limit (2: U.L Limit/Home)
This is the method using the DOG and HOME and the action by homing command is as follows.
(1) Operation
(a) Accelerates to the setting homing direction and acts by homing high speed.
(b) If Upper/Lower signal is entered, it transferred to opposite direction and acts by homing low speed.
(c) If encounters the HOME signals while the homing low speed is active, the origin would be determined and it stops..
■ Operating Pattern
Speed
Change the direction when meet upper limit signal
Homing high
speed
Time
Homing
low speed
Upper limit
signal
HOME signal
Motor 1 turning
(PG 1 turning)
ON
Homing
command
ON
In homing
State of Origin
Fixed
Action
Waiting In homing Waiting
status
Note
In case that HOME signal is “ON” before entering the Upper/Lower limit signal, it carries out the homing low speed
operation when the Upper/Lower limit signal is entered and when HOME is “ON”, the origin will be determined
Speed
Direction change when encounters Upper/Lower Limit
Time
Upper
Limit
Home
signal
(1) Operation
(a) Accelerates to the setting homing direction and acts by homing high speed.
(b) If DOG signal is entered, it decelerates and transferred to opposite direction acts by homing high speed.
(c) When it operates in opposite direction, if DOG is entered again, it decelerates and transferred to opposite direction
and acts by homing low speed.
(d) If encounters the DOG signals again while the homing low speed is active, the origin would be determined and it
stops..
■ Operating Pattern
Forward
Turn the direction at the rising edge of DOG signal
Homing at
high speed
Homing at
Low speed
Time
Origin-determined
DOG signal
ON
Homing command
ON
In homing
ON
The state of
origin-decided
Note
If “ON” time of DOG is longer than deceleration time, the action is as follows.
Forward
Homing High
speed
Homing Low
speed
Time
Origin
determined
Deceleration section Turn the direction at the falling edge
Homing High
of DOG signal
speed
Reverse
DOG signal
(1) Operation
(a) Once Homing command executes, it operates positioning with high speed and homing from current position
(b) When using High speed homing, it should be carried out in the state that the positioning by 6 types of mechanical
homing, by floating origin, or by the current position preset is completed in advance.
■ Operating Pattern
Speed
Homing at
high speed
Time
Origin
ON decided
Homing command
ON
In homing
ON
State of origin-
decided
Action
Waiting In homing Waiting
status
(1) Operation
(a) It accelerates to the setting homing direction and acts by homing high speed.
(b) If Upper/Lower limit signal is entered, it transferred to opposite direction and acts by homing low speed.
(c) If Upper/Lower limit signal is turned off while the homing low speed is active, the origin would be determined and it
stops.
■ Operating Pattern
Forward
Turn the direction when it meet with Upper/Lower
Homing at limit signal
high speed
Origin-decided
Time
Homing at
low speed
ON
Homing
command
ON
In homing
Origin decided
Action
waiting In homing waiting
status
(1) Operation
(a) It accelerates to the setting homing direction and acts by homing high speed.
(b) In this case, if HOME signal is entered, it decelerates and transferred to opposite direction acts by homing high
speed.
(c) When it operates in opposite direction, if HOME is entered again, it decelerates and transferred to opposite
direction and acts by homing low speed.
(d) If encounters the HOME signals again, the origin would be determined and it stops.
■ Operating Pattern
Forward
Turn the direction at the rising edge of HOME signal
Homing at
high speed
Homing at
low speed
Time
Origin
decided
HOME signal
ON
Homing command
ON
In homing
ON
State of origin-
decided
Action
Waiting In homing Waiting
status
Note
1. If “ON” time of DOG is longer than deceleration time, the action is as follows
Forward
Homing at
high speed
Homing at
low speed
Time
Origin decided
Reverse
Home signal
2. It acts as follows if Lower limit (if homing direction is forward, upper limit) signal is entered before HOME signal is
entered..
Forward
Turn the direction at the rising edge of HOME signal
Homing at
high speed
Time
Homing at Origin decided
low speed
Turn the direction when it meets with Lower limit
signal
Reverse
Lower limit
signal
HOME signal
ON
Homing command
ON
In homing
ON
State of Origin
decided
Action
Wating In homing Waiting
status
Goal Position Set the absolute target position or distance of positioning control.
Operation Speed Set the value of operation speed during operation control.
Set the operation number of operation control during acceleration time.
Acceleration Number Acceleration Number is selected from basic parameters which are Acceleration Number1, 2, 3,
and 4.
Set the operation number of operation control during deceleration time.
Deceleration
Deceleration Number is selected from basic parameters which are Deceleration Number1, 2,
Number
3, and 4.
M Code Set the M Code when using the code number for sub operation of positioning control.
After complete the positioning control, set the time until servo drive complete positioning
Dwell Time
control.
Sub Axis Setting Set the sub axis during interpolation control.
Circular Interpolation Set the secondary data (middle point, center point and radius) during circular interpolation.
Circular Interpolation Set the generating method of arc (middle point, center point and radius) during circular
Mode interpolation.
Circular Interpolation
Set the number of arcs to draw during circular interpolation.
Turn Number
Helical Interpolation Set the axis to run linear operation during helical interpolation.
Note
It is available to set the operation data each of 1~400 steps and axis1~6.
End ○ Finish after the completion of the current step position control
Continue to the next step after the completion of the current step
Single Keep ○ position control
Single-axis Continuous ○ Continue to the next step continuously without stop.
Position Change the step No. to the Repeat step No. after the completion of
Control
End ○ the current step position control.
Continue to the repeat step No. after the completion of the current
Repeat Keep ○ step position control
Continuous ○ The current step and the repeat step No. continuously without stop
End ○ Finish after the completion of the current step’s FEED control
Continue to the next step after the completion of the current step
Single Keep ○ FEED control
Single-axis Continuous Х Errors
FEED Change the step No. to the Repeat step No. after the completion of
End ○ the current step FEED control.
Control
Continue to the repeat step No. after the completion of the current
Repeat Keep ○ step FEED control
Continuous Х Errors
End ○ Finish after the completion of the current step’s linear interpolation
Continue to the next step after the completion of the current step s
Single Keep ○ linear interpolation
Continue to the next linear interpolation step continuously without
Linear Continuous ○ stop
Interpolation Change the step No. to the Repeat step No. after the completion of
End ○ the current step linear interpolation.
Continue to the repeat step No. after the completion of the current
Repeat Keep ○ step s linear interpolation
The current linear interpolation and the repeat step No. continuously
Continuous ○ without stop
End ○ Finish after the completion of the current step’s circular interpolation
Continue to the next step after the completion of the current step s
Single Keep ○ circular interpolation
Continue to the next circular interpolation step continuously without
Circular Continuous ○ stop
Interpolation Change the step No. to the Repeat step No. after the completion of
End ○ the current step circular interpolation.
Continue to the repeat step No. after the completion of the current
Repeat Keep ○ step s circular interpolation
The current circular interpolation and the repeat step No.
Continuous ○ continuously without stop
Note
1. Operation mode shall be set from PLC Program or Operation data of SM-PM.
2. Operation data can be set up to 400 from operation step no. 1 ∼ 400 at each axis.
3. With one time start command, positioning operation method by one operation step positioning data and
positioning operation method by several operation step in order shall be determined by operation mode of each
positioning data set.
3. With one time start command, positioning operation method by one operation step positioning data and
positioning operation method by several operation step in order shall be determined by operation mode of each
positioning data set.
4. when executing continuous operation, The continuous operation item of common parameter must be set to
“Enable”. if Continuous Operation parameter is disabled, Continuous operation command can not be executed
Speed
Dwell time
Time
ON
Start command
In operation
ON
In acceleration
ON
In constant
speed
ON
In deceleration
ON
In dwell
ON
Positioning
complete
Speed Speed
Start Start
command command
In In
operation operation
ON
In acc. In acc.
ON
At At
constant constant
speed ON speed
In dec. In dec.
ON ON
In dwell In dwell
ON ON
Positioning Positioning
complete complete
[ Example ]
- When indirect start command is executed[when Step No. of command is set to 0].
- Starting command execute total four times.
■ Setting of XG-PM
Operation Goal Position Operation Decel
Step NO. Control Method Accel NO. M Code Dwell Time
Method [pls] Speed [pls/s] NO.
Absolute Single-axis
1 Single,End 10000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
2 Single,End 15000 500 1 1 0 0
Positioning Control
Absolute Single-axis
3 Single,End 25000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
4 Single,End 30000 500 1 1 0 0
Positioning Control
■ Operation Pattern
Speed
Operation mode : Operation mode :
1000 Singular, End Singular, End
Start
command
ON ON ON ON
In
operation
The operating step for each starting command will be [1] → [2] → [3] → [4].
[ Example 1]
- When indirect start command is executed[when Step No. of command is set to 0].
- Starting command execute total four times.
■ Setting of XG-PM
Operation Goal Position Operation Decel
Step NO. Control Method Accel NO. M Code Dwell Time
Method [pls] Speed [pls/s] NO.
Absolute Single-axis
1 Single,End 10000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
2 Repeat,End 15000 500 1 1 0 0
Positioning Control
Absolute Single-axis
3 Single,End 25000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
4 Repeat,End 30000 500 1 1 0 0
Positioning Control
■ Operation Pattern
Start
command
ON ON ON ON
In
operation
The operating step for each starting command will be [1] → [2] → [1] → [2].
The operating step3 and step4 will not be executed
[ Example 2]
- When indirect start command is executed[when Step No. of command is set to 0].
- After the first starting command, change repeat operation step number as “3” by Change repeat step number」
command(XSRS).
- Execute starting command 3 times more.
■ Setting of SM-PM
Operation Goal Position Operation Decel
Step NO. Control Method Accel NO. M Code Dwell Time
Method [pls] Speed [pls/s] NO.
Absolute Single-axis
1 Single,End 10000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
2 Repeat,End 15000 500 1 1 0 0
Positioning Control
Absolute Single-axis
3 Single,End 25000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
4 Repeat,End 30000 500 1 1 0 0
Positioning Control
■ Operation Pattern
Speed
Operation mode : Singular, End Operation mode : Singular, End If it keeps operating by start command, it will
1000 operates operation step no. 3 and 4 repeatedly
Change the No. of repeat
step
Operation mode : Repeat, End Operation mode : Repeat, End
500
Start
command
ON ON ON ON
In
operation
ON
XSRS
command
The operating step for each starting command will be [1] → [2] → [3] → [4].
[ Example]
- When indirect start command is executed[when Step No. of command is set to 0].
- Starting command execute total two times.
■ Setting of XG-PM
Operation Goal Position Operation Decel
Step NO. Control Method Accel NO. M Code Dwell Time
Method [pls] Speed [pls/s] NO.
Absolute Single-axis
1 Single,Keep 10000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
2 Single,Keep 15000 500 1 1 0 0
Positioning Control
Absolute Single-axis
3 Single,End 25000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
4 Single,End 30000 500 1 1 0 0
Positioning Control
■ Operation Pattern
Speed
※Start operation step no. : 1
Start
command
ON ON
In
operation
[ Example]
- When indirect start command is executed[when Step No. of command is set to 0].
- Starting command execute one time.
■ Setting of SM-PM
Operation Goal Position Operation Decel
Step NO. Control Method Accel NO. M Code Dwell Time
Method [pls] Speed [pls/s] NO.
Absolute Single-axis
1 Single,Cont 10000 500 1 1 0 0
Positioning Control
Absolute Single-axis
2 Single,Cont 30000 1000 1 1 0 0
Positioning Control
Absolute Single-axis
3 Single,End 40000 300 1 1 0 0
Positioning Control
■ Operation Pattern
Speed Operation mode :
Singular, Continuous
Operating step no. : 2
1000
Operation mode :
Singular, Continuous Operation mode :
Operating step no. : 1 Singular, End
500
Operating step no. : 3
300
Time
ON
Start
command
ON
In
operation
Operating step that execute according to starting command order will be [1 → 2 → 3].
Note
1. When operation method is continuous, sometimes it can be changed to next operation step speed before
reaching the amount of movement current step's goal position. This is operation to change operating speed
continuously, The remained moving amount of current step is operated in next step.
(The remaining distance is less than the distance can be moved within 1 control cycle at current speed)
2. If the control method is set as linear or circular interpolation and the operation method is set as continuous,
operating speed of positioning will be different according to the interpolation continuous operation positioning
method」of extended parameter.
refer to continuous operation of interpolation control for detail.
The difference of general continuous operation and Look Ahead control is as below.
Normal continuous operation Continuous operation with Look Ahead
Calculate the
Speed End speed = Operating speed Speed Endspeed with *2
Calculate the *1 Look Ahead
End speed with
Look Ahead
ON ON
In In
operation operation
*1 : moving amount of Step 2 and Step 3 is more than the deceleration stop distance from operation speed. So, endpoint
speed = operation speed.
*2 : When moving amount of step 3 is smaller than deceleration stop distance from operation speed of step 2. Therefore, it
calculate available end point speed for step 2 by goal position of step2,3 and change speed to this..
.
Operation
Operation step : 2
step : 1
Passing by
Goal position
Passing by goal position
and continuous operation
Position of
main-axis
It decrease speed of acceleration, constant speed section as much as remaining amount of movement at the
last section of current step to compensate position if operates as passing goal position operation.
Because next step can start with compensated speed, can avoid occurrence of discontinuous operating
speed.
Position of
sub-axis
Operation step : 2
Operation step : 1
In the picture above, during general Continuous Operation, Occurring speed discontinuity because of
remaining amount of movement at the last operation step NO.1. 「Near Passing」Continuous Operation,
you can move the remaining amount of movement to next step and execute Continuous Operation without
speed discontinuity.
Note
When using「Near passing」continuous operation, sometimes it operates with next step speed before
reaching the amount of movement set on goal position to remove the discontinuity of speed.
However in the case of Interpolation Continuous Operation control, it can have a gap with trajectory data
which user set if it operates speed of the next step before reaching the goal position.
The following is the maximum difference of position for each axis.
• Difference of maximum axis position <( speed of each axis (pls / s) x control cycle (= 1ms or 5ms))
1) When the moving direction of current executing operation step and the moving direction of next step is different
(the case of single positioning control only)
■ Setting of SM-PM
Operation Goal Position Operation
Step NO. Control Method Accel NO. Decel NO. M Code Dwell Time
Method [pls] Speed[pls/s]
Absolute Single-axis Single
1 10000 1000 1 1 0 0
Positioning Control Continuous
Absolute Single-axis Single
2 3000 300 1 1 0 0
Positioning Control End
■ Operation Pattern
Speed
1000
Operation mode :
Singular, Continuous Deceleration Stop
Operation step no. : 1
Time
Operation mode :
Singular, End
Operation step no. : 2
-300
ON
Start
command
ON
In
operation
The Step1 will be operated by the start command. however, because the goal position of next step is on
opposite direction from the goal position of step1, it stops after deceleration, and then operate Step2 to a
opposite direction.
■ Setting of XG-PM
Operation Goal Operation
Step NO. Control Method Accel NO. Decel NO. M Code Dwell Time
Method Position [pls] Speed [pls/s]
Absolute Single-axis Signle
1 10000 1000 1 1 0 0
Positioning Control Continuous
Absolute Single-axis Signle
2 10000 700 1 1 0 0
Positioning Control Continuous
Absolute Single-axis Signle
3 15000 500 1 1 0 0
Positioning Control End
■ Operation Pattern
Speed
Start
command
ON
In
operation
The Step1 will be operated by the start command. However, because the moving amount of next step is 0, it
stops after deceleration, and then operates Step3 after 1 control period.
■ Setting of XG-PM
Operation Goal Operation
Step NO. Control Method Accel NO. Decel NO. M Code Dwell Time
Method Position [pls] Speed [pls/s]
Absolute Single-axis Signle
1 10000 1000 1 1 0 0
Positioning Control Continuous
Absolute Single-axis Signle
2 20000 1000 1 1 0 0
Feed Control Continuous
Absolute Single-axis Signle
3 30000 1000 1 1 0 0
Positioning Control End
■ Operation Pattern
Speed
1000
Operation mode :
Deceleration Stop
Singular, Continuous
Operation step no. : 1
Time
ON
Start
command
ON
In
operation
Note
During Continuous Operation of Linear interpolation or circular interpolation, because the PLC does not check the
direction of movement, does not deceleration stop even if the moving direction is changed.
Therefore, if there is opposite direction of goal position set on operation data,
it may cause damages to machine because of rapid direction changing.
In this case, use the operation method of 「Keep」to prevent the damage for system.
ON
Start
command
ON
Main in
operation
ON
Sub in
operation
(1) Control by Absolute method (Absolute coordinate) (「Absolute, Single-axis Positioning Control」)
(a) Positioning control from start position to goal position (the position assigned by positioning data). Positioning
control is carried out based on the position assigned (origin position) by homing.
(b) Moving direction shall be determined by start position and goal position.
▶ Start position < Goal position: forward direction positioning
▶ Start position > Goal position: reverse direction positioning
[Example] Set the Absolute Coordinates as follow, Operate single-axis positioning control.
▷Start position: 1000,
▷Goal position: 8000
The transfer amount to forward direction shall be 7000 (7000=8000-1000).
0 1000 8000
■ Operation Pattern
Speed
1000
Time
ON
Start
command
ON
In
operation
ON
In dwell
ON
Positioning
complete
(2) Control by Incremental method (Relative coordinate) (「Relative, Single-axis Positioning Control」)
(a) Positioning control as much as the goal transfer amount from start position. Unlike the absolute coordinates of
goal position, it is not a value of specified on goal position; it is a moving amount of current position.
(b) Transfer direction shall be determined by the sign of transfer amount.
▷Transfer direction (+) or no sign: forward direction (current position increase) positioning
▷Transfer direction ( - ) : reverse direction (current position decrease) positioning
Starting position
Reverse Forward
[Example] Set the Relative Coordinates as follow, Operate single-axis positioning control.
▷Start position: 5000,
▷Goal position: -7000
This will be reverse direction and positioning will be at the point of –2000.
-2000 0 5000
■ Setting of XG-PM
Operation Goal Position Operation
Step NO. Control Method Accel NO. Decel NO. M Code Dwell Time
Method [pls] Speed [pls/s]
Incremental Single-axis Single
1 -7000 1000 1 1 0 100
Positioning Control End
■ Operation Pattern
Speed
Time
-1000
ON
Start
command
ON
In operation
ON
In dwell
ON
Positioning
complete
Speed
Time
ON
Start command
ON
In operation
ON
Dec. stop
command
(3) Restrictions
(a) Set the operation pattern of speed control as 'End' or 'Keep'. When it is set on "Continuous", error occurs (error
code: 236) and can not execute speed control.
(b) Using as speed control, only when「M code mode」of extended parameter is "with" , M code signal is "On".
(When "After mode", M code signal is not "On".)
(c) Speed control of software upper/lower limit checking change according to the setting of the speed control of
software upper/lower limit check.
Item Setting Value Contents
During Speed Control, do not operate to check the range of
0 : Not Detect
During Speed Control upper/lower limit of software
S/W Upper/Lower limit During Speed Control, operate to check the range of upper/lower limit
1 : Detect
of software
1000
Dwell time = 100ms Dwell time = 100ms
500
Time
ON
Start command
ON
In operation
ON ON
In dwell
ON
Positioning complete
Position
1000
700
Time
(3) Restrictions
(a) Set the operation pattern of Feed control as 'End' or 'Keep'. When it is set on "Continuous", error occurs (error
code: 230) and can not execute Feed control.
(1) Linear interpolation control with absolute coordinates (「Absolute, Linear Interpolation」)
(a) Execute linear interpolation from starting position to the goal position designated on positioning data. Positioning
control is on basis of the designated position from homing.
(b) The direction of movement depends on the starting position and the goal position for each axis.
■ Starting position < Goal position : Positioning operation in forward
■ Starting position > Goal position : Positioning operation in reverse
Y Forward
Y2
Y1
Action by linear interpolation
X Reverse X Forward
Moving amount
of X axis
X1 X2
Y Reverse
(c) Restrictions
Linear interpolation with 2 axes may not be executed in the case below.
■ 「Sub axis setting」Error (error code : 253)
▪ 「Sub axis setting」of main axis operating data is “Axis-undecided”
▪ 「Sub axis setting」of main axis operating data is the same as main axis no.
▪ 「Sub axis setting」of main axis operating data exceeds the settable axis No.
Note
Because more than 2 axes are in action, so need user to pay attention
(1) The commands available are as follows.
Speed override, Dec. time, Emergent stop, Skip operation, Continuous operation
(2) The commands unavailable in linear interpolation are as follows.
Position/Speed switching control, Position override
(3) The parameter items which work depending on the value of each axis are as follows.
Backlash compensation, Software Upper/Lower limit
Note
Linear interpolation control is executed on the basis of operating data of main axis.
Items other than "coordinate" and "target position" during setting of subordinate axis during linear interpolation
operation do not affect linear interpolation operation. That is, setting any value does not affect the operation and
does not cause an error. Since the coordinate setting of the longitudinal axis control method indicates whether
the target position on the vertical axis is an absolute coordinate or a relative coordinate, when the linear
interpolation is controlled by the relative coordinate system, the coordinate of the vertical axis must be set to
"relative".
[Example] axis1 and axis2 are main and sub axis each. Execute linear interpolation by the setting as follows
■ Starting position (1000, 4000), Goal position (10000, 1000) : In this condition, the operation is as follows.
■ Setting example of XG-PM
▪ Operating data of main-axis(axis1)
Operation Goal Position Operation Accel Decel Sub axis
Step NO. Control Method M Code Dwell Time
Method [pls] Speed [pls/s] NO. NO. setting
1 Absolute, Linear Singular, End 10000 3000 1 1 0 100 Axis 2
■ Operating pattern
Position of Sub-axis
Starting position
4000
Moving amout
of sub-axis
(1000-4000=-3000)
ON
Main-axis in operation
ON
Sub-axis in operation
(2) Linear interpolation control with relative coordinates (「Relative, Linear Interpolation」)
(a) Execute 2 axes linear interpolation from starting position to the goal position. Positioning control is on basis of the
current stop position.
(b) Moving direction depends on the sign of the goal position (Moving amount)
■ The sign is positive (+ or nothing) : Positioning operation in forward
■ The sign is negative (-) : Positioning operation in reverse
Y Forward
Y2
Y1
Action by linear interpolation
X Reverse X Forward
Moving amount of X
X1 X2
Y Reverse
(c) Restrictions
Linear interpolation with 2 axes may not be executed in the case below.
■「Sub-axis setting」error (error code : 253)
▪「Sub-axis setting」value of main axis operating data is “Axis-undecided”
▪「Sub-axis setting」value of main axis operating data is same as the main axis no.
▪「Sub-axis setting」value of main axis operating data exceeds settable axis no.
Note
Linear interpolation control executes the operation based on the item set in the operation data of the main axis
(command axis).
Items other than "coordinate" and "target position" during setting of subordinate axis during linear interpolation
operation do not affect linear interpolation operation. That is, setting any value does not affect the operation and
does not cause an error.
Since the coordinate setting of the longitudinal axis control method indicates whether the target position on the
vertical axis is an absolute coordinate or a relative coordinate, when the linear interpolation is controlled by the
relative coordinate system, the coordinate of the vertical axis must be set to "relative".
[Example] axis1 and axis2 are main and sub axis each. Execute linear interpolation by the setting as follows.
■ Starting position (1000, 4000), Goal position (9000, -3000) : In this condition, the operation is as follows.
■ Setting example of XG-PM
▪ Operating data of main-axis(axis1)
Operation Goal Position Operation Accel Decel Sub axis
Step NO. Control Method M Code Dwell Time
Method [pls] Speed [pls/s] NO. NO. setting
1 Absolute, Linear Singular, End 9000 3000 1 1 0 100 Axis2
■ Operating pattern
Position of Sub-aixs
Starting position
4000
Moving amount of
sub-axis
(-3000)
Ending position of
linear interpolation
1000
Position of
0 main-axis
1000 5000 10000
3000
Action of Moving amount = 9000
main-axis
0 Time
Speed of sub-axis
Action of
sub-axis 0 Time
Moving amount = -3000
-1000
ON
Dwell time=100ms
Start command
ON
Main-axis in operation
ON
Sub-axis in operation
Position of Y
Goal position
(X2, Y2)
Y2 )
on
lati
po
Moving amount (Speed of Sub-axis) ter
f in
of Y (Sy) do
Vy ee
(Sp Action by linear interpolation
F
Y1 Vx (Speed of main-axis)
Starting position
(X1, Y1)
Position of X
Interpolating speed ( F ) Vx Vy
2 2
[Example]
■ Starting position (2000, 1000)
■ Goal position (6000, 4000)
■ Operating speed : 400 [pls/s]
Speed of sub-axis and interpolating speed are as follows.
3000
Speed of sub-axis = 400 300 [pls/s]
4000
Position of Y
Goal position
(X2, Y2)
Y2 )
on
lati
po
Moving amount (Speed of Sub-axis) ter
f in
of Y (Sy) edo
Vy
(Spe
Action by linear interpolation
F
Y1 Vx (Speed of main-axis)
Starting position
(X1, Y1)
Position of X
4000
Speed of main-axis = 400 320
5000
3000
Speed of sub-axis = 400 240 [pls/s]
5000
Note
(Moving amount of
main-axis = 0)
Operating step : 1
1000
Position of main-axis
0
5000
Action of
Speed of main-axis main-axis
1000
Operating step : 1 Operating step : 2
0 Time
Speed of sub-axis Action of Operating at the
sub-axis speed of main-axis
1000
Operating step : 1 Operating step : 2
200
Time
0
ON
Start
Dwell time
command
ON
Main-axis
in operation
ON
Sub-axis
In operation
(4) 2 axes linear interpolating continuous operation with circular arc interpolation
When the operation method is set as “continuous” and the direction of movement changes rapidly, machine is
possible to be damaged. When it does not have to position to the goal position, user may interpolate ‘circular
interpolating operation’ between two trace to make operation softer and smoother.
Operation Position of
step : 1 circular
interpolation
Operation Operation
Circular
step : 2 step : 2
interpolation
Main- Main-
axis axis
0 Time 0 Time
(c) Restrictions
Circular interpolation is not executed in the case below but linear interpolation is executed to the goal position.
▪ Operating method of operation data is “End” or “Continue”
▪ Position of circular arc interpolating is bigger than linear trace 1, 2 (Error code : 262)
▪ Trace of both linear interpolations are on the same line
[Example] Execute linear interpolation when the extended parameter setting is same as follows at the
current position (0,0)
■ Operating pattern
Sub-axis Sub-axis
4000 4000
Operation step : 3
3000
Position of
circular arc
Operation step : 2 interpolation=
1000 1000 2000
Operation step : 1
Main Main
0 -axis 0 -axis
1000 5000 1000 3000 5000
(1) Linear interpolation control with absolute coordinates (「Absolute, Linear Interpolation」)
(a) Execute linear interpolation with 3 axes from starting position to the goal position designated on positioning data.
Positioning control is on basis of the designated position from homing.
(b) The direction of movement depends on the starting position and the goal position for each axis.
■ Starting position < Goal position : Positioning operation in forward
■ Starting position > Goal position : Positioning operation in reverse
Forward(axis2)
Goal position
(X2, Y2, Z2)
Starting
position Action by linear interpolation
(X1, Y1, Z1) of axis1,2,3
Y2
Z2
Forward(axis3) Moving amount of axis2
Moving amount of
axis3 Y1
Z1
Moving amount of axis1
X1 X2
Reverse Forward(axis1)
Reverse
Reverse
(c) Restrictions
Linear interpolation with 3 axes may not be executed in the case below.
■ 「Sub axis setting」Error (error code : 253)
▪ 「Sub axis setting」of main axis operating data is “Axis-undecided”
▪ 「Sub axis setting」of main axis operating data is the same as main axis no.
▪ 「Sub axis setting」of main axis operating data exceeds the settable axis no. of module now using
■ If only one axis is set as sub axis, execute “linear interpolation control with 2 axes”.