Ec20 Series Plc User Manual.pdf

  • Uploaded by: Rafael Cueva Amaya
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ec20 Series Plc User Manual.pdf as PDF for free.

More details

  • Words: 16,583
  • Pages: 51
EC20 Series PLC User Manual Version Revision date BOM

V1.1 June 26, 2006 31011166

Emerson Network Power provides customers with technical support. Users may contact the nearest Emerson local sales office or service center.

Copyright © 2005 by Emerson Network Power Co., Ltd. All rights reserved. The contents in this document are subject to change without notice.

Emerson Network Power Co., Ltd. Address: No.1 Kefa Rd., Science & Industry Park, Nanshan District 518057, Shenzhen China Homepage: www.emersonnetworkpower.com.cn E-mail: [email protected]

Safety Precautions To reduce the chance of accident, please read the safety precautions very carefully before operation. The "Caution, Notice, Warning, Danger" symbols in this manual do not represent all the safety points to be observed, and are only used as a supplement to various operation safety points. Therefore, the installation and operation personnel must be strictly trained and master the correct operations and all the safety points before actual operation. When operating Emerson PLC products, the safety rules in the industry, the general safety points and special safety instructions specified in this manual must be strictly observed. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: Danger: indicates that death, severe personal injury, or substantial property damage will result if proper precautions are not taken. Warning: indicates that death, severe personal injury, or substantial property damage could possibly result if proper precautions are not taken. Caution: indicates that minor personal injury or property damage can result if proper precautions are not taken. Notes for designing The programming must include safety circuit to ensure the safe application of the PLC (Programmable Logic Controller) system upon power off or the PLC malfunction. Note the following when programming: z

The external circuit of the PLC must include the emergency braking circuit, protection circuit, mutual interlock circuit of forward/reverse rotation, and the interlock switch of position upper/lower limit for preventing equipment from damage.

z

For the safe operation of the equipment and output signals of the serious accident, please design the external protection circuit and the safety mechanism.

z

All the outputs may be shutdown when the CPU of the PLC detects the abnormity of the system; the failure of part PLC circuit may result in uncontrolled PLC output. A suitable external control circuit must be designed to ensure the normal operation of the equipment.

z

When the PLC output unit such as the relay or the transistor is damaged, the PLC output cannot be controlled as ON or OFF state.

z

The PLC is designed to be used in the electrical environment of indoor area B and C☆. However, to prevent the high lightning voltage from damaging the equipment through the ports of power input, signal input or control output, a SPD should be installed in the power supply system.

☆: According to IEC61131-2, section 8.3.1 classification declaration Notes for installation z

Units should not be installed in areas subject to the following conditions: excessive or conductive dust, corrosive or flammable gas, moisture or rain, excessive heat, regular impact shocks or excessive vibration. Electric shock, fire hazard and mishandling may also damage the product.

z

Take special care not to allow metal debris and wire lead to fall inside the vent of the PLC during the screw hole processing and wiring. Otherwise there is a danger of fire, damage or faulty operation of equipment.

z

Once the installation of the new PLC is complete, remove everything on the surface of the vent, including packing goods such as protective paper. Otherwise the poor ventilation during the operation may result in fire, damage or faulty operation of equipment.

z

Do not wire, inset or pull out the cable plug with power applied. Otherwise there is a danger of electric shock or circuit damage.

z

Installation and wiring must be fastening and reliable. Bad contact may result in faulty operation of equipment.

z

The input/output cable of high frequency signal should use the shielding cable to improve the interference rejection of the system.

Notes for wiring z

Installation and wiring can be done only after the external power supplies are all disconnected. Otherwise there is a danger of electric shock or equipment damage.

z

Once the installation and wiring of the PLC is complete, cleanup the spot at once. To prevent the electric shock, replace the port cover of the product before power is on.

z

When wiring AC supplies, the ‘Live’ cable should be connected to the ‘L’ terminal and the ‘Neutral’ cable should be connected to the ‘N’ terminal. Otherwise the PLC will be damaged.

z

Don’t power +24V port of the main module by the external power supply. Otherwise the PLC will be damaged.

z

Do not lay I/O signal cables of the PLC next to other power cables or strong interference circuits.

z

Do not make the earth port (PG) of the main module and the heavy current power system share the same earthing.

Notes for operation and maintenance z

Do not touch the ports when the power is applied, otherwise there is a danger of an electric shock or faulty operation of equipment.

z

The cleaning and the fastening work can be done only after the power supply has been disconnected; otherwise there is a danger of electric shock.

z

Only after the power supply has been disconnected, can the communication signal cables and the cables of the expansion module or control unit be connected or removed. Otherwise there is a danger of equipment damage or faulty operation of equipment.

z

Do not disassemble the PLC. Otherwise it may destroy the inner electrical components.

z

Read through this manual carefully before operating the PLC. Safe and efficient operation of the product, such as program alternation, trial operation, start and stop, is only based on correct operation and maintenance.

z

Do not replace the button cell battery with power applied. If the battery replacement is indeed to be done with power applied, it shall always be carried out by adequately trained electric technical personnel wearing insulated gloves.

Notes for the product disposal Note the following when disposing the PLC: z

Explosive of the electrolytic capacity: The capacities on the circuit board may explode when burning.

z

Exhaust gas when burning: The main body of the PLC is plastic, and it may produce poisonous gas when burning.

z

Disposal of button cell battery: Classified collecting and disposing, and separating from the daily-life rubbish.

Follow the local environmental regulations to dispose the PLC or dispose it as industrial waste.

Contents Chapter 1 Preface ............................................................................................................................................................ 1 Chapter 2 Product Introduction......................................................................................................................................... 2 2.1

Outline................................................................................................................................................................ 2

2.2

Maximum Configuration ..................................................................................................................................... 2

2.3

Internal Memory Capacity Of User Program ...................................................................................................... 2

2.4

Resource Configuration Of System Soft-device ................................................................................................. 2

2.5 High-speed Input/Output Function...................................................................................................................... 3 2.6

Filter Function Of Input Port ............................................................................................................................... 3

2.7 Interrupt Source.................................................................................................................................................. 3 2.8 Subroutine Call................................................................................................................................................... 3 2.9 Reinforced Debugging Function ......................................................................................................................... 3 2.10

Support Online Modification ............................................................................................................................. 3

2.11

Multiple Password Protection Function ............................................................................................................ 4

2.12

Expansion Module............................................................................................................................................ 4

2.13 RUN And STOP Control................................................................................................................................... 4 2.14

User Program Developing And Debugging ...................................................................................................... 4

2.15

Communication And Networking ...................................................................................................................... 4

Chapter 3 Installation........................................................................................................................................................ 5 3.1

Notes For Installation ......................................................................................................................................... 5

3.2

Requirements For Installation Position............................................................................................................... 5

3.3

Installation Method ............................................................................................................................................. 5

3.4

Installation Dimensions ...................................................................................................................................... 6

Chapter 4 Product Specifications ..................................................................................................................................... 8 4.1

Model Legend..................................................................................................................................................... 8

4.2 Product Model And Configuration....................................................................................................................... 8 4.2.1

Main Module ........................................................................................................................................... 8

4.2.2

I/O Expansion Module............................................................................................................................. 8

4.2.3 Special Function Module......................................................................................................................... 9 4.3 Product Size ....................................................................................................................................................... 9 4.4 Environmental Requirements ............................................................................................................................. 9 4.5 Electric Insulation Specifications ........................................................................................................................ 9 4.6

Reliability .......................................................................................................................................................... 10

4.7

Power Supply Specifications ............................................................................................................................ 10 4.7.1 Inner Power Supply Of Main Module .................................................................................................... 10 4.7.2 Use Of Each Circuit Output Power........................................................................................................ 10 4.7.3 Power Specifications Provided By Main Module To Expansion Module................................................ 11 4.7.4

Derating Design Of Power Supply Circuit ............................................................................................. 11

4.7.5 Power Consumption Of Expansion Module........................................................................................... 12 4.7.6 Power Capacity Calculation In Expansion Connection.......................................................................... 12 4.8

Programming Tool Of User Program................................................................................................................ 12

Chapter 5 Input Characteristic ........................................................................................................................................ 13 5.1 User Ports Of Main Module .............................................................................................................................. 13 5.2 Input Port Characteristic And Signal Specification ........................................................................................... 14 5.3

Inner Equivalent Circuit Of Input Port ............................................................................................................... 15

5.4

Input Connection Of High-speed Counter ........................................................................................................ 16

5.5 Interrupt Input Connection................................................................................................................................ 17 5.6 Input Signal Status Indication ........................................................................................................................... 17 5.7

Analog Potentiometer And Application ............................................................................................................. 17

5.8

Example Of Input Connection .......................................................................................................................... 17

Chapter 6 Output Characteristic ..................................................................................................................................... 19 6.1 Output Port Application .................................................................................................................................... 19 6.2 Electric Specifications Of Output Port .............................................................................................................. 19 6.3 Output Port Connection.................................................................................................................................... 20 6.4

Output Port Status Indication............................................................................................................................ 22

6.5

Example Of Output Connection........................................................................................................................ 22

Chapter 7 Expansion Module ......................................................................................................................................... 23 7.1 Model ............................................................................................................................................................... 23 7.2

Expansion Busbar Connection ......................................................................................................................... 23

7.3

Expansion Module Addressing ......................................................................................................................... 23 7.3.1

I/O Point Addressing Number Principle................................................................................................. 24

7.3.2 Special Function Module Addressing Number Principle........................................................................ 24 Chapter 8 Communication And Networking.................................................................................................................... 25 8.1 Communication Port......................................................................................................................................... 25 8.2

Programming Environment............................................................................................................................... 26

8.3 Programming Cable ......................................................................................................................................... 26 Chapter 9 Cable Specification And Wiring...................................................................................................................... 27 9.1 Connecting Power Supply Cable...................................................................................................................... 27 9.2 Connecting Ground Cable ................................................................................................................................ 27 9.3 Connecting Common Port ................................................................................................................................ 28 9.4 Cable Specification........................................................................................................................................... 28 Chapter 10 First Operation And Maintenance ................................................................................................................ 29 10.1 Notes For Application ..................................................................................................................................... 29 10.2

Check Before Power On................................................................................................................................. 29

10.3 Startup............................................................................................................................................................ 29 10.4

RUN/STOP Switchover .................................................................................................................................. 29 10.4.1 How To Startup (STOP → RUN) ....................................................................................................... 30

10.4.2 How To Stop (RUN → STOP) ........................................................................................................... 30 10.5 Routine Maintenance ..................................................................................................................................... 30 Chapter 11 Troubleshooting ........................................................................................................................................... 32 Chapter 12 Instruction List.............................................................................................................................................. 33 Chapter 13 Special Register........................................................................................................................................... 38 13.1

Special Intermediate Register ........................................................................................................................ 38

13.2 Special Data Register..................................................................................................................................... 42

Chapter 1 Preface

1

Chapter 1 Preface Thank you for using EC20 series Programmable Logic Controller (PLC) made by Emerson Network Power Co., Ltd. This book contains text, diagrams and explanations that will guide the reader in the correct installation and operation of the EC20 series PLC and should be read and understood before attempting to install or use the product. The book describes the hardware, features and applications of the EC20 series PLC, also includes the options introduction, troubleshooting guide and instruction quick reference. For the information about how to setup an EC20 programming system and the customer programming application, please refer to ControlStar Programming Software User Manual or EC20 series PLC Programming Manual printed by Emerson Network Power Co., Ltd. For ordering the above user manuals, contact your Emerson distributor or sales office. This manual is designed for the engineer who is studying, programming, installing, or servicing the EC20 series PLC. Definitions of specific terms PLC: Programmable Logic Controller Main module: Refer to basic module or CPU module; it is the basic unit of the PLC. It includes master CPU, I/O ports and power supply. Expansion module: Generally refer to the modules except for the main module. I/O expansion module: The expansion module for the digital signal input/output. Special function module: Other function expansion modules except for the I/O expansion module, such as analog signal input/output module, and busbar module. Points: The sum of channel number of the input/output digital signal. Digital signal: Refer to the input/output signals that only have two states: “ON” and “OFF”. Analog signal: Continuously changed electric signal, such as 4~20mA output signal of pressure transmitter. Unipolar signal: Generally refer to the continuously changed signal with positive polarity. Bipolar signal: Generally refer to the continuously changed signal, which may be positive polarity or negative polarity. High-speed pulse: Refer to the square-wave signal with higher frequency. Counter: Refer to the counter whose counting value increases or decreases by per pulse input according to the increasing/decreasing control signal. Two-phase counter: refer to the counter that has two-pulse input ports, one is for counting up, and the other is for counting down. AB-phase counter: refer to the counter that has two input ports of quadrature phase pulse, and counts up or down according to the frequencies and phase differences of the two signals.

EC20 Series PLC User Manual

2

Chapter 2 Product Introduction

Chapter 2 Product Introduction 2.1

Outline The outline of EC20 main module is shown in Figure 2-1.

1

2

4

3

15 14 13

5 6 7 8 12

11 Figure 2-1

10

9

Outline of EC20 main module

The name and function of the components in the figure are as follows: 1. The installation position of a button cell battery (CR2032 lithium battery) for data backup. 2. Power supply input ports 3. Signal input ports 4. Input signal status LEDs 5. 26pin busbar socket, used for connecting the expansion module 6. Output signal status LEDs 7. Fix screws, used for tightening the top/bottom cover of the PLC 8. Mounting holes, used for installing screws 9. Locking device of 35mm DIN, used for DIN rail installation mode. 10. Signal output ports 11. System operation status LEDs 12. Communication port COM1, providing RS485 and RS232 at the same time 13. Communication port COM0, RS232, Mini DIN8 socket 14. System operation control switch, with three positions: ON, TM and OFF. 15. Analog potentiometers (two)

2.2

Maximum Configuration The main module and the I/O expansion modules can achieve the most 512 logic points (256 in/256 out maximum). And eight special function modules can be expanded at most.

2.3

Internal Memory Capacity Of User Program The user program is 8K words (16K byte) at most and supports 8,000 data blocks of D register.

2.4

Resource Configuration Of System Soft-device Component X

Name Input relay

Quantity 256

Serial No.

Note

X000~X377

The soft-device numbering is octal code The soft-device numbering is octal code

Y

Output relay

256

Y000~Y377

M

Auxiliary relay

2000

M0~M1999

LM

Local relay

64

LM0~LM63

EC20 Series PLC User Manual

Chapter 2 Product Introduction Component SM

2.5

Name Special auxiliary relay

Note

State relay

992

S0~ S991

T

Timer

256

T0~T255

100ms precision: T0~T209 10ms precision: T210~T251 1ms precision: T252~T255

C

Counter

256

C0~C255

16 bit common increasing counter: C0~C199 32 bit common decreasing counter: C200~C235 32 bit high-speed counter: C236~C255

D

Data register

8000

V

Local data register

64

V0~V63

Z

Indexed addressing register

16

Z0~Z15

SD

Special data register

256

SD0~SD255

D0~D7999

High-speed Input/Output Function High-speed port type

Input/output mode

X0, X1

Input

High-speed pulse count

Single input: 50KHz; X0~X5 input at the same time: frequency sum is 80KHz

X2~X5

Input

High-speed pulse count

Single input: 10KHz

Y0, Y1 (only suitable for transistor output)

Output

Max. frequency of input/output signal

High-speed pulse output Two ports output independently:

100KHz

Filter Function Of Input Port Function

2.7

Serial No. SM0~SM255

S

High-speed port name

2.6

Quantity 256

Description

Digital filter function

X0~X17 provide digital filter function, and filter time is within 0~60mS, set by user’s program

Hardware filter function

Other X input ports

Interrupt Source Provide eight external interrupt inputs, the interrupt edge can be set by users and is corresponding to X0~X7 ports; six high-speed counter interrupts; three inner timing interrupt sources.

2.8

Subroutine Call At most 64 subroutines and 6-level subroutine nesting can be used. Support local variables and variable-alias, and every subroutine can provide 16 parameters to be called at most.

2.9

Reinforced Debugging Function Provide register-forced function, convenient for debugging and analyzing the user program, improving debugging efficient. Permit the most 128 bit-registers and 16 word-registers.

2.10

Support Online Modification Users can modify the program online during operation, which is greatly convenient for modifying and upgrading the user program in important production situation.

EC20 Series PLC User Manual

3

4

2.11

Chapter 2 Product Introduction

Multiple Password Protection Function The product provides three password authorities, which is convenient for user program access control and protecting the intelligence property.

2.12

Expansion Module The expansion module such as I/O module, analog signal input/output module, network expansion module, and position control module can be connected to the PLC main module. Every module is address allocation automatically and identification automatically.

2.13

RUN And STOP Control RUN or STOP of the EC20 can be controlled through the following methods: the RUN/STOP switch, ControlStar program system, communication port (i.e. Modbus), and standard input ports X0~X7, which are convenient for controlling system operation

2.14

User Program Developing And Debugging Provide the integrated ControlStar program system compatible with IEC61131-3 standard, and uses ladder diagram, instruction list, and sequential function diagram to program. The unit has such functions as monitoring, debugging, and modifying on-line. The program system also provides strong instruction guide and on-line help.

2.15

Communication And Networking The main module has two asynchronism serial communication ports (COM1 provides RS232 and RS485 level), for communication with personnel computer, HMI and other equipment; and the main module has an inner standard Modbus protocol to compose 1:N network; and supports freedom protocol. Provide Profibus module to compose the Profibus network.

EC20 Series PLC User Manual

Chapter 3 Installation

5

Chapter 3 Installation 3.1

Notes For Installation The PLC is designed to be used in the environments meeting with standard II installation ambient, and Class 2 pollution. So the unit should be installed in such environment free of dust, conductive dust, corrosive or flammable gas, excessive heat, moisture or rain; Besides, shocks and vibrations will also affect the reliability of the PLC and shorten its service life, and should therefore be avoided. Usually, the user should mount the PLC and the associated switches, contactors to the inside wall of the electric cabinet and keep adequate natural convection. If the ambient temperature is a little high, or a heat generating equipment is nearby, then a forced convection device should be installed on the top or the side of the cabinet to prevent the overheat of the unit. Take special care not to allow metal debris and wire lead to fall inside the vent of the PLC during the screw hole processing and wiring. Otherwise there is a danger of fire, damage or faulty operation of equipment. Once the installation of the new PLC is complete, remove everything on the surface of the vent, including packing goods such as protective paper. Otherwise the poor ventilation during the operation may result in fire, damage or faulty operation of equipment. Do not wire, inset or pull out the cable plug with power applied. Otherwise there is a danger of electric shock or circuit damage. Installation and wiring must be firm and reliable; bad contact may result in faulty operation of equipment.

3.2

Requirements For Installation Position To prevent a rise in temperature, mount the PLC up and down to the backboard of the cabinet horizontally. Never mount them to the floor or ceiling of an enclosure or other directions, as shown in the Figure 3-1. You must provide a clearance of at least 15 mm, both above and below the units, for proper cooling. No heat generating equipment

should exist around the PLC.

Figure 3-1

3.3

Requirements for installation position

Installation Method Generally you can mount the PLC onto a standard rail (DIN) with 35mm width. Follow these steps: 1. Fix the DIN rail to the backboard; 2. Pull out the clip (located on the bottom of the PLC) and hook the back of the PLC onto the rail. 3. Snap the clip closed, carefully checking to ensure that the clip has fastened the PLC securely onto the rail. 4. At last, install two DIN rail stops at the two sides of the PLC to avoid slippage around. Other EC20 series modules can be mounted using the same procedures.

EC20 Series PLC User Manual

6

Chapter 3 Installation DIN rail stop

DIN rail stop

Pull out the Clip of DIN rail

Figure 3-2

DIN rail with 35mm width

Snap the clip of the DIN rail

Installing a PLC onto a standard rail

Under the conditions with great impact, you should mount the PLC on a panel using the screw installation. Using four fix screws through the four Φ4 mounting holes on the enclosure of the PLC (while EC20-2012BR/BT has only two Φ4 fix screws) to fix the PLC on the back panel of the electric cabinet, as shown in the Figure 3-3. M3 fix screw

4 mounting holes Figure 3-2

3.4

M3 fix screw

Installing a PLC onto a panel with fix screws

Installation Dimensions 1. The dimensions for the outline and mounting holes of EC20-2012BR and EC20-2012BT are shown in the Figure 3-4:

DIN rail (35mm)

Figure 3-4

Dimensions of outline and mounting holes of EC20-2012BR and EC20-2012BT

2. The dimensions for the outline and mounting holes of EC20-3232BR and EC20-3232BT are shown in the Figure 3-5:

Figure 3-5

Dimensions of outline and mounting holes of EC20-3232BR and EC20-3232BT

3. The dimensions for the outline and mounting holes of EC20-0808ER are shown in the Figure 3-6. And the dimensions for the outline and mounting holes of the analog signal expansion module such as EC20-4AD, EC20-4DA, EC20-4AM, and EC20-4TC are the same with that of EC20-0808ER.

EC20 Series PLC User Manual

Chapter 3 Installation

Figure 3-6

Dimensions of outline and mounting holes of EC20-0808ER and the analog signal expansion module

EC20 Series PLC User Manual

7

8

Chapter 4 Product Specifications

Chapter 4 Product Specifications 4.1

Model Legend EC 2 0 - 20 12 B R D Addition (A: AC 220V input power) D: DC 24V input power N: No power Output mode (R: relay; T: transistors) Module type (B: main module; E: expansion module) Output points Input points Version Series No. (1:micro-type; 2:minitype; 3:medium-sized; 4:large-sized Emerson PLC Figure 4-1

4.2

Product Model And Configuration

4.2.1

Main Module Table 4-1

Model Legend of PLC

Model and I/O configuration of EC20 series PLC,

Model

Power voltage Vac

Input / output points

Input signal voltage

Output type

Input port/ Output port/ Interrupt/ common port common port pulse input

Pulse output

EC20-2012BRA

90~264

20/12

DC24V

Relay

20/1

12/5

Yes

No

EC20-2012BTA

90~264

20/12

DC24V

Transistor

20/1

12/5

Yes

Yes

EC20-3232BRA

90~264

32/32

DC24V

Relay

32/1(2)☆

32/6

Yes

No

EC20-3232BTA

90~264

32/32

DC24V

Transistor

32/1(2)☆

32/6

Yes

Yes

☆ “ 32/1(2)” in the table: Represent only one common port in logic, but two common ports in structure, and the two are connected inside the PLC.

4.2.2

I/O Expansion Module Table 4-2

I/O expansion module and configuration of EC20 series PLC

Model

Power Supply Vac

Input/output points

Output type

EC20-0808ERN

-

8/8

Relay

No

EC20-0808ETN

-

8/8

Transistor

No

EC20-1616ERA

220Vac

16/16

Relay

Yes

EC20-1616ETA

220Vac

16/16

Transistor

Yes

EC20-1600ENN

-

16/00

-

No

EC20-0016ERN

-

00/16

Relay

No

EC20-0016ETN

-

00/16

Transistor

No

EC20 Series PLC User Manual

Inner power supply

Chapter 4 Product Specifications

4.2.3

Special Function Module Table 4-3

Special function module of EC20 series

Model

Function

EC20-4AD

4.3

9

4-channel analog signal input module

EC20-4DA

4-channel analog signal output module

EC20-4TC

4-channel thermocouple temperature input module

EC20-4AM

2-channel analog signal input module, 2-channel analog signal output module

Product Size The main modules of EC20 series PLC have the same height and width, but their lengths are related to the I/O ports. The size of each module is listed in Table 4-4. Table 4-4

4.4

Model

Length (mm)

Width (mm)

Height (mm)

Net weight

EC20-2012BR

158

90

82

680g

EC20-2012BT

158

90

82

680g

EC20-3232BR

227

90

82

950g

EC20-3232BT

227

90

82

880g

EC20-0808ER, 4AD, 4DA, 4AM, 4TC

58

90

82

240g

Environmental Requirements Table 4-5

Requirements of operation, storage, and transport environments of EC20 series PLC

Environmental parameters Type

Parameter

Climate

Temperature Humidity Air pressure**

Mechanical stress

Sinusoidal vibration Random vibration

Impact Drop

4.5

Product size

Unit

Environmental conditions for operation

Environmental conditions for transport

Environmental conditions for storage

Low temperature

°C

-5

-40

-40

High temperature

°C

55

70

70

Relative humidity

%

95 (30 ± 2°C)

95 (40 ± 2°C)

Low pressure

kPa

70

70

70 106

/

High pressure

kPa

106

106

Bit shift

mm

3.5 (5-9HZ)

/

acceleration

M/s2

10 (9-150HZ)

/

acceleration spectra density

m2/s3 (dB/Oct)

/

1.92 (5-20Hz) (20-200Hz)

Frequency range

Hz

/

5-200

/

Vibration direction

/

X/Y/Z

/

Type

/

Half-sine wave

/

/ / -3db

/

acceleration

m/s2

/

180

/

Drop height

m

/

1

/

Electric Insulation Specifications Table 4-6

Electric insulation specifications of EC20 series PLC

Type Insulation resistance

Value

AC input to case

≥ 5%106Ω

AC input to DC output

≥ 5%106Ω

DC output to case

≥ 5%106Ω

Test conditions Ambient temperature: 25 ± 5°C; relative humidity 90% (no condensing); test voltage: 500Vdc

AC input to case (PG port) AC input to the port between the user input and output Insulation voltage

AC input to expansion busbar User output (relay board) to expansion busbar User input to user output (relay)

Capable of withstanding 2830Vac/50Hz AC voltage (or equivalent DC voltage) 1 minute, with leakage current ñ30mA, and no breakdown or flashover

Between user output ports (relay board)

EC20 Series PLC User Manual

10

Chapter 4 Product Specifications Type Insulation voltage

4.6

Value

Test conditions

The insulation resistance and voltage of other circuits are designed according to the requirements of an extra-low voltage circuit

Reliability Table 4-7 Output type

MTBF of EC20 series PLC

Time

Conditions

200,000 hours Fix on the floor , mechanical stress is almost close to zero, with temperature and humidity control

Relay

100,000 hours Fix on the floor , mechanical stress is almost close to zero, without temperature and humidity control 300,000 hours Fix on the floor , mechanical stress is almost close to zero, with temperature and humidity control

Transistor

150,000 hours Fix on the floor , mechanical stress is almost close to zero, without temperature and humidity control

For the PLC with relay output, the life of its contactors is related to the load type and load capacity, as listed in Table 4-8. Table 4-8 Load capacity

Action frequency

220Vac, 15VA, inductive load

1sec. ON / 1sec. OFF

3,200,000 times

220Vac, 30VA, inductive load

1sec. ON / 1sec. OFF

1,200,000 times

220Vac, 60VA, inductive load

1sec. ON / 1sec. OFF

300,000 times

4.7

Power Supply Specifications

4.7.1

Inner Power Supply Of Main Module Table 4-9 Item

Unit

Life-span of contactors

Power supply circuit character of EC20 series PLCs

Min.

Typ.

Max.

Note

Input voltage

Vac

90

220

264

Normal start and operating range

Limiting input voltage

Vac

85

-

280

Operating at 280V for 3 hours and not damaged Each circuit can power 70% rated load at 85-100Vac, and power 55% rated load at 264-280Vac

Input current Output voltage Output rated current

4.7.2

Use life of EC20 series output relay

5V/GND

A

/

/

1.5

90Vac input, full load output

V

4.75

5

5.25

Output1

24V/GND

V

21.6

24

26.4

Output2

24V/COM

V

21.6

24

26.4

Output3

5V/GND

mA

1000

24V/GND

mA

650

24V/COM

mA

600

The capacity is the sum of the main module inner consumption and the expansion module load. The maximum output power is 35W, which is the sum of each circuit output with full load. The module is natural cooling

Use Of Each Circuit Output Power 1. Output1 (5V/GND): Output1 is the working power of the PLC main module logic circuit, and provides power supply to the expansion module logic circuit through the expansion port of the module at the same time. And this power will not be used for the expansion module with self-carried power source. 2. Output2 (24V/GND): Output2 is the working power of the PLC main module relay output circuit, and provides power supply to the expansion module relay output circuit through the expansion port of the module at the same time. Output1 and output2 share the common ground. And this power will not be used for the expansion module with self-carried power source. 3. Output3 (24V/COM): Output3 is the 24V power supply, which is provided to users by the PLC main module. Also it can be used as an auxiliary power to other user circuits, sensors or expansion modules through the “24V” and “COM” ports of the main module. Output3 is electrical isolated with Output1 and Output2.

EC20 Series PLC User Manual

Chapter 4 Product Specifications

4.7.3

11

Power Specifications Provided By Main Module To Expansion Module Table 4-10

Power capacity consumption and load current provided

Logic circuit power supply Model

5V/GND Inner consumption*

Auxiliary power supply output

24V/GND

Capacity provided*

Inner consumption

24V/COM

Capacity provided

EC20-2012BR

250mA

750 mA

70 mA

580 mA

EC20-2012BT

400 mA

600 mA

0

650 mA

EC20-3232BR

480 mA

520 mA

240 mA

410 mA

EC20-3232BT

650 mA

350 mA

0

650 mA

Inner consumption

Capacity provided

140mA

460 mA

240mA

360 mA

*Explanation: The current of “Inner consumption” in Table 4-10 is the average current consumed when the module inner circuit works. Users cannot change it directly. The current of “capacity provided” in Table 4-10 is the part capacity of the main module that can be used for the external control module. The data listed in Table 4-10 is under the stable ambient condition with 25°C. If input voltage is out of rated voltage range or the working temperature exceeds +50°C, users should consider the derating design, which is mainly obtained by decreasing the value of “capacity provided”, to ensure the reliable operation of the PLC.

4.7.4

Derating Design Of Power Supply Circuit 1. Relation between power supply output capacity derating and power supply input voltage When the input voltage of the PLC is beyond the rated voltage range, users should consider decreasing the main module’s output power to the expansion module. The derating relation is shown in Figure 4-2. Power load %

Input voltage Vac 85 Vac

Figure 4-2

264 Vac

100 Vac

280 Vac

Derating curves of power supply output capacity and power supply input voltage

2. Power output capacity derating vs. work temperature relationship When the work temperature is higher than the upper limit of the specification, the power capacity provided (including 5V/24V/GND and 24V/COM) by the main module to the expansion module must be derating. The derating relation is shown in Figure 4-3. Power load %

Operation ambient temperature°C -5°C

Figure 4-3

50°C

55°C

Derating curve between power output capacity and work temperature

EC20 Series PLC User Manual

12

4.7.5

Chapter 4 Product Specifications

Power Consumption Of Expansion Module Table 4-11

Power consumption of each expansion module Max. current consumption

Model

5V/GND

24V/GND

EC20-0808ER

30mA

50mA

24V/COM 50mA

EC20-0808ET

80mA

0

50mA

EC20-4AD

50mA

0

25mA

EC20-4DA

50mA

0

120mA ☆

EC20-4AM

50mA

0

90mA ☆

EC20-4TC

50mA

0

25mA

☆: Refer to the power consumption when the analog output channel port connects with the output. If the current output port (0~20mA) is not used, the current can be decreased to 50mA.

4.7.6

Power Capacity Calculation In Expansion Connection Before the PLC connects with an expansion module, users should calculate the current sum of each power supply of the expansion module, and ensure the current sum is less than the output current provided by the corresponding power supply of the main module to avoids the over loading of the main module power supply. Example 1: the main module is EC20-2012BR, at 25°C ambient temperature, two EC20-0808ET, two EC20-4AD, one EC20-4DA and one EC20-4TC shall be connected to, verifying the feasibility. Checking computations as following: Power circuit

Current provided by the main module

Actual consumed current

5V/GND

750mA

(80×2+50×2+50+50) = 360mA

conclusion Pass

24V/GND

580mA

(0×2+0×2+0+0) =0 mA

Pass

24V/COM

460mA

(50×2+25×2+110+25) = 285mA

Pass

It is obvious that the total power consumption of above expansion module is less than the permission load of the main module, and the designing scheme is feasible. Example 2: the main module is EC20-3232BT, at 25°C ambient temperature, three EC20-0808ET, two EC20-4AD, one EC20-4DA shall be connected to, using 20mA output port and one EC20-4TC. Checking computations as following: Power circuit

Current provided by the main module

Actual consumed current

conclusion

5V/GND

350mA

(80×3+50×2+50+50)=440mA

Un-passed

24V/GND

650mA

(50×3+0×2+0+0)=150mA

Pass

24V/COM

360mA

(50×3+25×2+120+25)=345mA

Pass

The sum of the 5V/GND power consumption of the expansion module is 440mA, it is larger than 350mA which is the upper limit of 5V power supply; although the power consumption of 24V/GND and 24V/COM is less than the permitted current of the main module, the designing scheme is unfeasible. The solution to solve the insufficient of power supply capacity is to select the expansion module with self-carried power source. It can power by itself, also its outputs of 5Vdc/GND, 24Vdc/GND, and 24Vdc/COM can power to the expansion module added later.

4.8

Programming Tool Of User Program ControlStar programming system provides the programming, up/down-loading, debugging and monitoring the user program of the EC20 series PLC. The system also provides abundant help information, which can use ladder diagram, instruction list and sequence functional diagram to program.

EC20 Series PLC User Manual

Chapter 5 Input Characteristic

13

Chapter 5 Input Characteristic 5.1

User Ports Of Main Module The outline and the ports of EC20-2012BR and EC20-2012BT are the same. Their port wirings are shown in Figure 5-1: PG

COM X0 L

X2 X1

N

X4 X3

X6 X10 X12 X14 X16 X20 X22 X5

X7 X11 X13 X15 X17 X21 X23

Wiring of EC20-2012BR and EC20-2012BT

+24V

Y0

Y2

Y4

Y6

COM COM COM COM Y5 Y3 0 1 2 3

COM

Figure 5-1

Y1

Y10 Y12 Y7

COM Y11 Y13 4

The outline and the port of EC20-2012BR and EC20-2012BT

The pin definitions of EC20-2012BR and EC20-2012BT are listed in Table 5-1: Table 5-1

Pin functions of EC20-2012BR and EC20-2012BT

Pin L/N

Function

Note

220Vac AC power input port, L is live line, N is neutral line

PG

Earth port



Null port, used for isolation and not wiring

X0~X23

User input signal ports, used together with COM can produce input signal

COM

Common port, it is the negative pole of the +24Vdc auxiliary power and the common port of input as well. Two COMs connect inside the PLC

+24V

The auxiliary power to user external equipment , used together with COM

Y0, COM0

Control output port, group 0

Y1, COM1

Control output port, group 1

Y2, Y3, COM2

Control output port, group 2

Y4~Y7, COM3

Control output port, group 3

Y10~Y13, COM4

Control output port, group 4

The COMx (COM0 ~ COM4) of each output group are electrical isolated one another

The outline, port layout and function definition of EC20-3232BR and EC20-3232BT are the same. The port layout is shown in Figure 5-2:

EC20 Series PLC User Manual

14

Chapter 5 Input Characteristic PG

COM COM X0 L

X2

+24V X1

N

X4 X3

X6 X10 X12 X14 X16 X20 X5

X22 X24 X26 X30 X32 X34 X36

X7 X11 X13 X15 X17 X21

X23 X25 X27 X31 X33 X35 X37

Wiring of EC20-3232BR and EC20-3232BT

Y0

COM 2 Y3

Y1

COM COM Y2 0 1

Y5 Y4

Y7

Y11 Y13 Y15 Y17

Y23 Y25 Y27 Y31 Y33 Y35 Y37

COM Y6 COM Y10 Y12 Y14 Y16 Y20 Y22 4 3

Figure 5-2

Y24 Y26 Y30 Y32 Y34 Y36

COM 5

Outline and port layout of EC20-3232BR and EC20-3232BT Table 5-2

Pin

Pin definition

Function

L/N

5.2

Y21

Note

220Vac AC power input port, L is live line, N is neutral line

PG

Earth port



Null port, used for isolation and not wiring

X0~X37

User input signal ports, used together with COM can produce input signal

COM

Common port, it is the negative pole of the +24Vdc auxiliary power and the common port of input as well. Two COMs connect inside the PLC.

+24V

The auxiliary power to user external equipment , used together with COM.

Y0, COM0

Control output port, group 0

Y1, COM1

Control output port, group 1

Y2~Y7, COM2

Control output port, group 2

Y10~Y17, COM3

Control output port, group 3

Y20~Y27, COM4

Control output port, group 4

Y30~Y37, COM5

Control output port, group 5

The COMx (COM0~COM4) of each output group are electrical isolated one aother.

Input Port Characteristic And Signal Specification Table 5-3 Item Signal input mode

Input port characteristic and signal specification High-speed input port X0~X7

General input port

Leak mode, users only need to connect dry contact with Xn and COM ports.

Electric parameters Electric parameters

Test voltage

24Vdc

Input impedance

3.3k

Input ON

External circuit resistance < 400Ω

Input OFF

External circuit resistance > 24kΩ

Filtering function

Digital filter

X0~X17 have digital filtering function, the filtering time can be set within 0~60ms

Hardware filter

Except for X0~X17, other I/O ports are hardware filtering, filtering time is about 8mS.

High-speed function

Common port

4.3k

X0~X7 have high-speed counting, interrupt, and pulse catching function. The highest counting frequency of X0 and X1 port is high up to 50KHz The highest counting frequency of X2~X5 port is high up to 10KHz

Input

Only has one common port: COM

Output

Have multi isolated common ports according to different point configuration.

EC20 Series PLC User Manual

Chapter 5 Input Characteristic

Inner Equivalent Circuit Of Input Port There is a user switch status detecting power supply (24Vdc). Users only need to connect to the switching signal of the dry contact. If the output signal of active transistor sensor is connected to, an OC output signal is needed. Figure 5-3 shows the signal input and inner equivalent circuit of the PLC, and user’s circuit connects with PLC inner circuit through the connecting port. Inner equivalent circuit of PLC main module

User signal wiring 24V+ 24V+

Sensor

24V -

24Vdc auxiliary power supply

Working power for inner logic circuit 24V/5V/GNG

X0 Logic processing circuit

Various signal input equipment

COM

X1

X2

Xn

Figure 5-3

Inner equivalent input circuit of the main module (upon delivery)

As shown in Figure 5-3, the external signal input is “a SINK input”. You may need “a SOURCE input” in some special application, and you can change the soldering of the three jumper terminals of JP0, JP1, and jp2 on the interface board inside the PLC to reset the input mode, according to the screen-printing on the board (“ ” represents soldering; “×”represents disconnection). As shown in Table 5-4: Table 5-4

Screen print illustration JP0

Source input mode

JP1

JP2

%

%

%

Drain input mode (default setting)

The equivalent input circuit changed to the SOURCE input mode is as Figure 5-4: User signal wiring

Inner equivalent circuit of SOURCE input mode of the main module 24V+ 24V+

24Vdc auxiliary power supply

24V-

Working power for inner logic circuit 24V/5V/GND

X0

X1

X2

Logic processing circuit

Various signal input equipment

COM

For equipment with self-carried power source (24Vdc)

5.3

15

Xn

Figure 5-4

inner equivalent circuit of SOURCE input mode of the main module

EC20 Series PLC User Manual

16

Chapter 5 Input Characteristic Note: in the main module, all the input ports can but use the same input mode (SOURCE input mode or SINK input mode); if you have any requirement, please contact your supplier and ask for the technical support before purchasing the product. To avoid damage, you’d better not change the circuit by yourself. The inner equivalent power supply and input signal connection of the I/O expansion module are shown in Figure 5-5: Provided by extension cable

User signal wiring

Internal equivalent circuit of the PLC extension module

To 24V+ of main module

24V+

Power supply of logic circuit : 24V/5V/GND

To COM of main module Sensor

Logic circuit

Signal input equipment

X0

X1

X2

Xn

Figure 5-5

5.4

Inner equivalent input circuit of the I/O expansion module

Input Connection Of High-speed Counter Table 5-5

the counter connection method and characteristic realized by X0~X7

Counter X0 X000

X001

X002

X003

X004

X005

X006 X007

Input point Counter C236 Up/down Counter C237

50 Up / down

Counter C238 Single-phase single-end count input mode

50 Up / down

Counter C239

Up / down

Counter C240

Up / down

Counter C241

Up / down

Counter C242 Up/down Counter C244 Up/down

Up / down

Up / down

Up / down

Up / down

Reset

Counter C245 Counter C246

Up

Down

Single-phase Counter C247 up/down Counter C248 count input Counter C249

Up

Down

Reset

Up

Down

Reset

Counter C251

Phase A

Phase B

Counter C252

Phase A

Phase B

Reset

Phase A

Phase B

Reset

Reset Reset 50 Up

Counter C250

Down

Reset

10

Start Up

Down

Reset

Start 30

Counter C253 Counter C254

10

Reset

Counter C243

Two-phase up/down count input

Max. Fre. (KHz)

Phase A

Counter C255

Phase B

Reset

5

Start Phase A

Among which: Phase A: phase-A input port of the two-phase counter; Phase B: phase-B input port of the two-phase counter.

EC20 Series PLC User Manual

Phase B

Reset

Start

Chapter 5 Input Characteristic

5.5

17

Interrupt Input Connection For the system that responds promptly to the input signal, it can use the interrupt to process the signals. The input ports of X0~X7 have interrupt function and corresponds to the eight external interrupt sources. If the input port is used as interrupt process mode, the corresponding interrupt control identification should be enabled when programming and the corresponding interrupt routine should be programmed (for details, refer to Programming Reference Manual). When using interrupt, the digital filter function of corresponding X port will be disabled and the filter time of the corresponding port is set as zero automatically.

5.6

z

When used as high-speed count input or interrupt input, the corresponding input port should use shielding wire, and the shielding wire should connect to earth line (same as PG port) to improve the interference rejection.

z

Some counters require multiple X input ports to realize (for example, C242, C244, and C254 consist of 2, 3, 4 ports separately). After using this kind of counter, the used ports cannot be used as input of other counters and the common input mode.

z

The input port of the counter has the limitation for the maximum frequency. Beyond the limitation, it may result the incorrect counting or normal operation of the system. You should use the input port reasonable and select the suitable external sensors.

Input Signal Status Indication The input status LEDs indicate the status of the user input port. When the input port is closed (“ON” state), the LED is on; otherwise the LED is off. When the X0~X7 ports input high frequency signal, the flashing frequency of the LED may be lower than that of the actual input signal, which is for the convenience of the user to observe the characteristics of the port signals. Working status LEDs

Input terminal status LEDs

Output terminal status LEDs

Figure 5-6

5.7

Status LEDs of EC20 series main module

Analog Potentiometer And Application The analog potentiometer provides external channel for users setting inner soft-device, which is within 0~255 and read by user program. When adjusting the setting value, users can use a small Philips screwdriver to rotate the potentiometer clockwise to increase the setting value, and counter clockwise to decrease it. The maximum angle of rotation is 270°. Do not energize excess.

5.8

Example Of Input Connection Figure 5-7 shows an example: an EC20-3232BT connects with an EC20-0808ER to realize a simple position control. The high-speed counting ports of X0 and X1 detect the position signal from the encoder. The high-speed ports of X3~X7 connect to the travel switch which needs quickly response, other user signals can be distributed with input ports.

EC20 Series PLC User Manual

Chapter 5 Input Characteristic

Sensor

Z

AC-N

B

+24V

VGND

PG

Using terminal block connects to COM

A

18

AC-L

L

PG

N

24V

24V COM X0 X1 X2 X3 X4 X5

Switch power supply

X6 X7 X10 X11

X36 X37

Xn

Xm Xn Xm

+24V +5V GND

EC20-3232BT Figure 5-7

electric connection of EC20-3232BT and EC20-0808ER

EC20 Series PLC User Manual

0808ER

Chapter 6 Output Characteristic

19

Chapter 6 Output Characteristic 6.1

Output Port Application 1. The output type of EC20 series PLC can be divided into relay type and transistor type. Both types are greatly different in the operation parameters. You should distinguish the difference before using them to avoid the damage by the misuse. 2. To protect the contacts of the PLC output relay, when the drive DC circuit is inductive (such as relay coil), a fly-wheel diode shall be connected to the user circuit; when the drive AC circuit is inductive, a RC surge absorber shall parallel connect to the user circuit. In principle, the relay output port does not connect to the capacitive load. If there is necessary to use, its surge current must be less than the maximum current in the specification list (see Table 6-1). 3. The transistor output port should be within the limitation of the allowable maximum current (see Table 6-1) to ensure the thermal value of the output port is limited in the allowable range. If output currents of multiple transistors are bigger than 100mA, they should be distributed equally in the output ports. Distributed adjacent will affect the heat dissipation. 4. It is recommended the output points which are in the ON (conducting) state at one time shall not exceed 60% total output points for a long time. Table 6-1

Item Output action Common port Voltage Current Difference

Comparison of relay output and transistor output

Relay output

Transistor output

Dry contact output, output state is “ON” (conducting) , contacts are closed; output state is ”OFF”, contacts are open.

Divided into multiple groups, each group has a common port COMn, suitable for the control circuit with different potential, and all common ports are insulated one another. 220Vac; 24Vdc, no polarity requirement 24Vdc, polarity requirement Accord with output electric specifications (see Table 6-2) High drive voltage, high current Low drive current, high frequency, long lifespan To drive the load with low action frequency such To apply in the situation with high frequency and long life, such as Application as: intermediate relay, contactor coil, and LEDs control servoamplifier and electromagnet with frequent action

6.2

Electric Specifications Of Output Port Table 6-2

Item

Electric specifications of output port

Relay output port

Loop power supply voltage Below 250Vac, 30Vdc

Transistor output port 5~24 Vdc

Output current

Single point: 2.0A /250Vac The total current of the 8 points sharing COM port is less than 8A.

0.5A 24Vdc The total current of the 8 points sharing COM port is less than 2A.

Circuit insulation

mechanical insulation

Optical coupling insulation

Act indication

Relay output contacts closed, LED on

Optical coupling is driving, LED on

Leakage current at open circuit

-

Less than 0.1mA/30Vdc

Min. load

2mA/5Vdc

5mA (5~24Vdc)

EC20 Series PLC User Manual

20

Chapter 6 Output Characteristic

Max. output current

Item

Transistor output port

Resistive load

2A/1 point; 8A/4 points, using a COM 8A/8 points, using a COM

Y0, Y1: 0.3A/1 point; Others: 0.3A/1 point; 0.8A/4 point; 1.6A/8 point; Above 8 points, total current increases 0.1A at 1 point increase

Inductive load

220Vac,80VA

Y0, Y1: 7.2W/24Vdc Others: 12W/24Vdc

Electric light load

220Vac,100W

Y0, Y1: 0.9W/24Vdc Others: 1.5W/24Vdc

ON response time

20ms Max

OFF response time

20ms Max

Y0, Y1: 10uS ; Others: 0.5ms

Y0,Y1 max. output frequency

-

Each channel : 100KHz

Output common port

Y0-COM0; Y1-COM1; Y2, Y3-COM2; Y4~Y7-COM3; Every 8 ports use one common port after Y8, and all the common port are isolated one another.

Fuse protection

No

Output Port Connection The inner equivalent circuit of the output part of the relay output PLC is shown in Figure 6-1: Inner equivalent circuit of PLC 24Vdc power Working power of inner logic circuit

Y0

Output group o

COM0 Y1

Output group 1

COM1

Output drive circuit

Logic processing circuit

6.3

Relay output port

Y2

Y3

Output group 2 Y4

Y5 COM2

Figure 6-1

Inner equivalent circuit of output part of relay output PLC

Figure 6-1 shows, output ports are divided into multiple groups, and each group is electrical isolated from others. Output contacts of different group can connect to the different power loop. For the inductive load in AC loop, the external circuit should be RC transient voltage absorbing circuit; for the inductive load in DC loop, it should consider to add a fly-wheel diode. As shown in Figure 6-2:

EC20 Series PLC User Manual

Chapter 6 Output Characteristic 24V +

21

24V -

Y7 Inductive load

Fly-wheel diode

24V + Y1

1N4004

24V -

Inductive load

Fly-wheel diode 1N4004

AC - N

AC - L Y11 Inductive load

R Figure 6-2

C

R=200Ω, 2W C=0.022uF , 250Vav

Protective circuit of PLC output contact

The inner equivalent circuit of the output part of the transistor output PLC is shown in Figure 6-3. We can see that, output ports are divided into multiple groups, and each group is electrical isolated from others. Output contacts of different group can connect to the different power loop. Transistor output can but be used in DC 24Vdc load circuit, and you should pay attention to the polarity of the power supply. When driving the inductive load, it should consider adding a fly-wheel diode. Inner equivalent circuit of PLC 5Vdc power Working power of inner logic circuit

Y0

Output group 0 COM0 Y1

Output group 1

Y2

Output drive circuit

Logic processing circuit

COM1

Y3

Y4

Output group 2

Y5 COM2

Figure 6-3

Inner equivalent circuit of output part of transistor output PLC

EC20 Series PLC User Manual

22

6.4

Chapter 6 Output Characteristic

Output Port Status Indication The status of the control output port is indicated by the output status LEDs. When the output port is closed (ON) state (the status between Yn and COMn is closed), the LED is on; otherwise the LED is off. When the Y0 and Y1 port of the transistor output PLC output high frequency signal, the flashing frequency of the LED may be lower than the actual output signal frequency, which is convenient for user observation.

6.5

Example Of Output Connection Figure 6-4 shows the connection between one EC20-3232BR and one EC20-0808ER, different output group can connect to the different signal voltage loop. Some output group (i.e. Y0-COM0) can connect to +24Vdc circuit and be powered by 24V/COM of EC20 PLC. Some output group (i.e. Y1-COM1) can connect to +5Vdc low voltage signal circuit. Other output groups (i.e. Y2~Y7) can connect to 220Vac signal circuit. That is to say, different output group can work at different voltage level. AC-N AC-L

L PG

N

24V

24V COM X0

Switch power supply

Y0 COM0

Y1 COM1

X1 X2 X3

+24V +5V GND

X36 X37

X4

X0

X1

X7

0808ER EC20-3232BR

Y2 Y3 Y4 Y5

Y6 Y7 COM2

Y30 Y31 Y32 Y33

COM5

Y0 Y1 Y2

COM

AC-L A B

A B

A B

A B

A B

A B

A B

A B

A B

A B

A B

A B

A B

+24V

AC-N

+5V

Various low-voltage signal circuit Figure 6-4

220Vac control load circuit

Using terminal block connects to COM

Electrical connection example of EC20-3232BR and EC20-0808ER

EC20 Series PLC User Manual

Chapter 7 Expansion Module

23

Chapter 7 Expansion Module 7.1

Model The expansion module is used to increase the point configuration of the main module, or to realize expansion part with special function. It must use together with the main module. At present, expansion modules provided by EC20 series are shown in Table 7-1. Table 7-1

Type I/O expansion module

Model EC20-0808ERN EC20-0808ETN EC20-4AD EC20-4DA Special module EC20-4AM EC20-4TC

7.2

Expansion module provided by EC20 series

Function Digital signal 8-channel input, 8-channel relay output Digital signal 8-channel input, 8-channel transistor output 4-channel analog signal input 4-channel analog signal output 2-channel analog signal input, 2-channel analog signal output 4-channel electric couple temperature input

Expansion Busbar Connection Power off the main module, remove the cover of the extension port at the right end of the main module, insert the extension cable of the extension module into this port, and replace the cover. Multiple expansion modules can be connected to one by one using this method. Removing extension port cover before connection

Main module Figure 7-1

7.3

Extension cable

Extension module

Cascade connection of expansion module

Expansion Module Addressing EC20 series main module can automatically recognize the expansion module connected to, and be sequential addressing automatically without user interference. When the system is normal after power on, the module conducts auto addressing once. Hereafter the address of each expansion module keeps unchanged during operation. Do not connect or disconnect any I/O expansion module or special function modules when the PLC is operating; otherwise the PLC may be damaged and cannot operate normally. You should power on the expansion module with self-carried power source and the main module at the same time, or power on the expansion module before the main module to ensure the reliable addressing of the expansion module.

EC20 Series PLC User Manual

24

7.3.1

Chapter 7 Expansion Module

I/O Point Addressing Number Principle I/O point numbering uses octal numbering system, and the serial number is as following: 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21…, without the figure 8 and 9. The numbering of the input port of the main module and I/O expansion module is: X0, X1, X2, …X7, X10, X11…; the output port is: Y0, Y1, Y2, …Y7, Y10, Y11…, and so on. Eight point numbers are a group. Insufficient section will be vacant. For example: EC20-2012BR module, the input port has 20 points, with serial number X0~X23. The port with serial number X24~X24 will be vacant; the X port of the subsequent expansion module is numbering from X30. In the same way, the output port has 12 points, the serial number is Y0~Y13, the port with serial number Y14~Y17 will be vacant and the Y port of the subsequent expansion module is numbering from Y20. According to the connection sequence to the main module, the numbering of X and Y ports of the I/O expansion module is in the increasing order. The example for the port logic numbering of the main module and the expansion module is as following: EC20-2012BR

7.3.2

0808ER

0808ER

X0 -X23

X30-X37

X40-X47

Y0 -Y13

Y20-Y27

Y30-Y37

4AD

0

4AD

1

4DA

2

0808ER

X50-X57

4TC

3

Y40-Y47

Special Function Module Addressing Number Principle The addressing number of the special function module is according to the unit of the module and independent of I/O expansion module addressing. Its address numbering is as following: 1, 2, 3, …6, 7; the minimum address number is 0; the maximum is 7. Eight special function modules can be connected to at the same time, and the number of the I/O expansion module added later will not affect the special function module addressing number. Take the module addressing number as the distinguishing identification upon call on. The software read-writing the corresponding data buffer memory (BFM) of the module with assigned address can call on the different channel inside the expansion module. More details refer to programming reference manual.

EC20 Series PLC User Manual

Chapter 8 Communication And Networking

25

Chapter 8 Communication And Networking 8.1

Communication Port The main module of EC20 series PLC has two series asynchronous communication ports: COM0 and COM1, supporting baud rate: 38400, 19200, 9600, 4800, 2400, and 1200bps. The feature and the function are shown in Table 8-1. Table 8-1

Port

Socket

Signal

COM0 Mini DIN8 RS232

COM1 EK500V

Characteristic of communication port of EC20 series main module

Work mode

Full-duplex

RS232 RS232 and Full-duplex can be RS485 selected half-duplex

Protocol provide Special programming protocol

Purpose Users programming, debugging and monitoring Supporting 9600bps and 19200bps only Can connect to HMI for operation, also network as slave ModBus slave station station equipment Free protocol User-defined protocol ModBus master station network as master station to control other equipment. Network as slave station equipment and connect to HMI ModBus slave station to operate Free protocol User-defined protocol

Among of which, the communication protocol of COM0 is selected by the operation control switch (ON/TM/OFF) on the side of the port. Refer to Figure 8-1.

ON/OFF confrot and protocol conversion COM0 port

COM1 port

RS232

Figure 8-1

RS485

Communication port and operation switch

Used as special port of user programming, COM0 can be compulsorily converted to programming protocol through ON/TM/OFF switch. The conversion relation between PLC operating status and the protocol used by COM0 refers to Table 8-2. Table 8-2

ON/TM/OFF switch position

status

ON

Operation

TM(ON TM)

Operation

TM(OFF TM)

Stop

OFF

Stop

COM0 protocol conversion by switch

COM0 port operation protocol Decided by user program and system configuration, it may be programming protocol, Modbus protocol, and free-port protocol. Compulsorily converted to programming protocol . If the system configuration of user program is free-portprotocol, it converts to programming protocol automatically after stop; otherwise the system configured protocol keep unchanged.

COM1 port is suitable to connect with the equipment that have communication function, such as variable speed drive, and uses Modbus protocol or RS485 port free protocol to control multiple equipment through network. COM1 port is fixed by screws. You can use a twisted pair line to make the communication signal cable by yourself. Note: you should not use RS232 port and RS485 port at the same time, and do not connect the cable to the ports that are not used; otherwise the communication may be interrupted. EC20 Series PLC User Manual

26

8.2

Chapter 8 Communication And Networking

Programming Environment The user program of EC20 series PLC is running on ControlStar integrated software development environment developed by Emerson Network Power Co., Ltd. The operating system should support Microsoft Windows 98, Me, NT 4.0, Windows 2000 or XP. The basic system configuration is shown in Table 8-3: Table 8-3

Item CPU Memory Video card Communication port Others

Program environment basic configuration of EC20 series PLC

Lowest configuration Equivalent to Intel Pentium 233 or above 64M 640×480, 256

Recommended configuration Correspond to Intel Pentium 1G CPU or above 128M

800%600 resolution, 65535 color mode A DB9 output RS232 serial communication port A mouse, PLC program cable produced by Emerson Network Power Co., Ltd., an EC20 series main module, ControlStar programming software.

Detailed information refers to ControlStar Programming Software User Manual.

8.3

Programming Cable Emerson Network Power Co., Ltd provides a serial communication cable for download program. The model of the cable is B2053RASL1, and the two connectors at the cable ends are Mini-DIN8 and DB9. The cable is non-isolated. Users should not insert or pull out the cable with power on to avoid the equipment damage. Also our company provides an isolated RS232 cable for PLC, which can be hot swappable. ControlStar

Figure 8-2

Programming cable B2053RASL1

Develop environment of user program

EC20 Series PLC User Manual

Chapter 9 Cable Specification And Wiring

27

Chapter 9 Cable Specification And Wiring 9.1

Connecting Power Supply Cable Warning z

EC20 series PLC module have two kinds of input power supply: 220Vac and 24Vdc. You should check and identify before the wiring and powering on the module to avoid the equipment damage and other damages due to misoperation.

z

The PLC is designed for use in control circuit. There should have SPD in its AC power circuit, and its power circuit should be separated from the power circuit to avoid the overvoltage.

z

Do not connect AC power supply with 24Vdc output port of the main module, or connect DC power with 24Vdc output port of the main module.

z

Do not connect or disconnect the cable with power on. Otherwise it may get an electric shock or equipment damage. AC - N AC - L

L

PG

N

24V COM

24V X0 X7

24V COM PG Xn

Xm

+24V +5V GND

Switch Power supply

EC20-2012BR

4AD 4DA 4AM 4TC

0808ER

Figure 9-1b Connection example of AC power and auxiliary power

9.2

Connecting Ground Cable The reliable connection of an earth line can strengthen the safety and improve the PLC immunity to electromagnetism. When installing, connect PG port of the PLC power supply with the earthing object. It is recommended to use the AWG12~16 connection cable, as short as possible, and use an independent earthing device. A common route with the earthing line of other equipment (especially for the equipment with strong interference) should be avoided. As shown in Figure 9-2: Other equipment

PLC

Best

Other equipment

PLC

Better

Figure 9-2

Other equipment

PLC

Worst

Earthing wiring example of PLC and other equipment

When using a PLC expansion module, you should connect the earthing line of each module with earthing object separately, as shown in Figure 9-3:

EC20 Series PLC User Manual

28

Chapter 9 Cable Specification And Wiring Expansion module 1

PLC main module

Expansion module 2

PLC main module

Expansion module 2

Worse

Better

Figure 9-3

9.3

Expansion module 1

Earthing wiring example of PLC main module and expansion module

Connecting Common Port When wiring PLC system, there may be multiple cables connecting with the same port, such as +24V, COM, output common port COMn (refer to the figures in Section 5.9 and 6.5). The proper wiring method is to use an extension terminal bar with corresponding identification, which is convenient for wiring.

9.4

Cable Specification When wiring PLC system, it is recommended to use the multi-strand copper wire and ready-made isolated terminals to ensure the wiring quality. The recommended cross-sectional area and the model of the wire see Table 9-1. Table 9-1

Wire

Cross-sectional area

AC power wire (L, N) 1.0~2.0mm²

Recommended cable model of PLC

Recommended model AWG12, 18

Wiring terminal and heat-shrink tube to be connected H1.5/14 terminal, or terminal tin-plated

Earthing line (PG)

2.0mm²

AWG12

H2.0/14 terminal, or terminal tin-plated

Input signal line (X)

0.8~1.0mm²

AWG18, 20

Output signal line (Y) 0.8~1.0mm²

AWG18, 20

UT1-3 or OT1-3 cold-pressed terminal, Φ3 or Φ4 heat-shrink tube

The recommended cable preparation is shown in Figure 9-4: UT cold-pressed terminal

Heat-shrink tube

Line

Line number

OT cold-pressed terminal <5.0

Heat-shrink tube

<5.0

H-type pre-insulation cold-pressed terminal

Terminal tin-coat

Figure 9-4

Line

PLC connection cable preparation recommended

Fix the prepared cable head on the connector of the PLC using a screw. The screw position should be right, and its moment strength should be within 0.5~0.8NM which ensures the connection is reliable and no damage to the screw.

EC20 Series PLC User Manual

Chapter 10 First Operation And Maintenance

29

Chapter 10 First Operation And Maintenance 10.1

Notes For Application All the notes of the manual should be read prior to using the product. Users should install, wire and check before power on strictly according to the requirements mentioned in this book. Only everything is identified to be okay, can the PLC be powered on.

10.2

Check Before Power On 1. Make sure the power supply input voltage is in complaint with the PLC rated input voltage, the power supply cable connects with the right connectors. Note: 220Vac power ports are L and N; but 24Vdc power ports are ⊕ DC24V Θ, and do not confuse with +24V and COM port. 2. Check to ensure that user signal input line connects with the ports of the PLC input line, and the signal character complies with the input port electric criterion. 3. Check the output port. If the output circuit has different voltage level, the different level should distribute different output groups to avoid short circuit and equipment damage. 4. Make sure the wiring and the specification of the earthing line are in compliant with the requirement. 5. Make sure irrelevant objects falls inside the PLC and the heat dissipation channel is free. 6. Make sure the insulating paper on the holder of the button lithium cell is removed. 7. Make sure the communication signal cable connects correctly if the host or HMI is needed. 8. After checking the items mentioned above one by one, then power on the PLC.

10.3

Startup 1. Switch on the PLC, the POWER indicator of the PLC should be on. 2. Startup the Controlstar software, download the compiled user program to the PLC; 3. After checking the download program, switch the operation switch to RUN position, the RUN indicator should be on; if the ERR indicator is on, it indicates that the user program or the system has mistake, then remove the mistake referring to the programming reference manual. 4. Then switch on the circuit breaker of the PLC external system to carry through system debugging.

10.4

RUN/STOP Switchover The operation statuses of the main module include RUN and STOP. RUN When the main module operation status is ON, user program will be executed by the system, which is a scan period including four tasks (executing the user program → communicating → housekeeping → refreshing I/O). STOP When the main module operation status is STOP, the system does not execute the user program, but still execute other three tasks in a scan period (communicating → housekeeping → refreshing I/O).

EC20 Series PLC User Manual

30

10.4.1

Chapter 10 First Operation And Maintenance

How To Startup (STOP → RUN) Reset mode Status switch is in ON position, after resetting (including power on resetting), the system starts up automatically. Note: if the “input point control mode” in the system configuration is enabled, the status of the appointed input point should be ON. Otherwise the system cannot startup. The description about the “input point control mode” refers to the fourth pieces in the following. Manual mode In the STOP state, toggle the status switch from OFF or TM position to ON position, the system stars up automatically. Communication command mode In the STOP state, the system stars up automatically upon receiving the RUN communication command. Input point control mode In the STOP state, the main module starts up automatically when the system detects the status change from OFF → ON of the appointed input port.

Note

When selecting input point control mode, you should enable the “input point control mode” in the system configuration and set the status switch in ON position.

10.4.2

How To Stop (RUN → STOP) Reset mode The status switch is in OFF position, and the system will stop automatically after resetting (including system power on reset).

Note

If the “input point control mode” is enabled in the system configuration, the state of the input point should be OFF; otherwise the system will not stop. Manual mode In the RUN state, after the status switch is toggled from ON or TM position to OFF position, the system stops. Communication command mode In the RUN state, the system stops when receiving the STOP communication command. Instruction control mode In the RUN state, after the STOP instruction in the user program is executed effectively, the system stops. Stop by mistake When the system detects the serious mistake (such as the user program error, overtime operation), the system stops executing the user program automatically.

10.5

Routine Maintenance The routine maintenance should check the following: z

Ensure the clearance of the PLC operation environment, and avoid the impurity and the dust falling inside the PLC.

z

Keep the ventilation and heat dissipation of the PLC in good condition.

z

All the wiring and the terminals are reliable fixed and in the normal state.

EC20 Series PLC User Manual

Chapter 10 First Operation And Maintenance

31

Observe the PLC BATT indicator and know the capacity state of the standby battery. When the BATT indicator flashing, it indicates that the battery capacity is insufficient and the new button lithium cell should be replaced during a month; when the BATT indicator is on, it indicates that the battery voltage is severe insufficient or battery lost, and a new button lithium cell should be replaced as soon as possible. Only trained personnel can replace the cell; the power must be disconnected; the shorter the replacement time the better; the replacement should be within one minute to avoid losing the backup data and the real time clock data.

EC20 Series PLC User Manual

32

Chapter 11 Troubleshooting

Chapter 11 Troubleshooting When the PLC works abnormally, first check the wiring of the power supply line and the status of the relative switches and protective device; if PLC is power on, check whether the user ports are fastness, the position of the run control switch is right; if all the conditions are normal but the PLC still does not work, you can analyze the problem according to the PLC operation state and the I/O state LEDs in Table 11-1. Table 11-1

Phenomena POWER LED and other LEDs all off

POWER LED intermittent blinking

Faults and actions

Cause Power off or power source voltage too low Power source switch or fuse disconnected Power source wiring abnormal Power source board damaged Bad contact of power source circuit Too many expansion module connected to result in current limit 24V/COM auxiliary power source output short circuit and result in current limit

Actions Check power source Check switch, line, and fuse state Check: 1) the voltage between L and N terminal is within the normal range 2) whether a short circuit or overload occur between 24V and COM port

Use ControlStar to re-compile the user program and download again Actual run time exceeds the WDT setting time Increase the WDT setting time BATT LED blinking Cell low voltage alarm Replace button cell BATT LED is on Cell voltage low or no stand-by cell ON/TM/OFF is not in ON position Toggle the switch to ON position Set the run control mode as port mode, but Close the setting control run port RUN LED is off the port is in OFF position The host remote control power off Make the host remote control power on Power off due to system mistake Check PLC application system Modify the electric parameters of the external circuit to the Input state LED Conducting resistance of user line toobig suitable value, shorten the wire length and do not use thin inconsistent with the wire input port state Bad contact of the signal circuit Check wiring Can not shutdown the Bad contact of the external wiring output (OFF) Relay contactors damaged The relay port with frequently action can exchange with the Status LED idle port inconsistent with output Relay aging or LED damaged port state Can not download / Bad contact of cable wiring, the position of Use the specialized communication cable of Emerson to upload / monitor ON/TM/OFF switch wrong download Bad contact of cable wiring, or the signal characteristic mistake, such as confusing TXD Connect signal wire correctly with RXD Serial port can not Communication parameters of slave/master control other computer are inconsistent, such as baudrate, Set the communication parameters consistent equipment checking, data bit and address Communication protocols used by Set the communication parameters consistent slave/master computer are inconsistent I/O expansion board or Power off , check and get rid of the problem, then power on special expansion Bad contact of expansion wire again. board no response In most conditions, input signal waveform has Parallel connecting a 22uF50V capacitor with the counter much bigger interference input port (note the capacitor polarity) Low-speed counting If the user program executing time is too long, the counter inaccuracy In few conditions, the cycle of detected signal signal should connect with the high speed counting port. If is shorter than the executive cycle of the PLC. the setting is constant scan, the scan time should be set reasonably. ERR LED blinking

User program mistake

EC20 Series PLC User Manual

Chapter 12 Instruction List

Chapter 12 Instruction List Instruction Type

Basic instructions

Program control instructions

SFC instructions

Data transmission instructions

Instruction LD LDI AND ANI OR ORI OUT SET RST ANB ORB INV NOP MPS MRD MPP MC MCR EU ED TON TOF TMON TONR CTU CTR DCNT LBL CJ CALL CSRET CFEND CIRET FOR NEXT WDT STOP EI DI STL SET Sxx OUT Sxx RST Sxx RET MOV DMOV RMOV BMOV SWAP XCH DXCH FMOV DFMOV WSFR

Function Normally open contact instruction Normally closed contact instruction Normally open contact AND instruction Normally closed contact AND instruction Normally open contact OR instruction Normally closed contact OR instruction Coil output instruction Coil setting instruction Coil cleanup instruction Power-flow block AND instruction Power-flow block OR instruction Power-flow inverse instruction No operation instruction Output power-flow in stack instruction Read output power-flow stack top value instruction output power-flow stack pop off Main control instruction Main control reset instruction Rising edge detection instruction Falling edge detection instruction On-delay timing instruction Of-delay timing instruction Not re-trigger monostable timing instruction Memory on-delay timing instruction 16-bit counter counting up instruction 16-bit counter loop cycle counting instruction 32-bit counting instruction Jump label definition Conditional jump Calling a subroutine Conditional return from user subroutine Conditional end from user main program Conditional return from user interrupt subroutine Cycle instruction Return from cycle User program watchdog reset User program stop Enable interrupt instruction Disable interrupt instruction SFC state load instruction SFC state shift SFC state jump SFC state reset SFC program end Move word data transmission instruction Move double word data transmission instruction Move floating point number data transmission instruction Move data block transmission instruction Swap bytes Exchange word instruction Exchange double word instruction Fill data block instruction Fill data block double word instruction Shift right word instruction

EC20 Series PLC User Manual

33

34

Chapter 12 Instruction List Instruction Type Data transmission instructions

integer/double integer math instructions

Floating point number math instruction

word/double word logic instructions

Shift/rotate instructions

Instruction WSFL PUSH FIFO LIFO ADD DADD SUB DSUB INC DINC DEC DDEC MUL DMUL DIV DDIV VABS DVABS NEG DNEG SQT DSQT SUM DSUM RADD RSUB RMUL RDIV RVABS RNEG RSQT SIN COS TAN LN EXP POWER RSUM WAND DWAND WOR DWOR WXOR DWXOR WINV DWINV ROR DROR ROL DROL RCR DRCR RCL DRCL SHR DSHR SHL

Function Shift left word instruction Push instruction First-in-first-out instruction Last-in-first-output instruction Add integer instruction Add double integer instruction Subtract integer instruction Subtract double integer instruction Increment integer instruction Increment double integer instruction Decrement integer instruction Decrement double integer instruction Multiply integer instruction Multiply double integer instruction Divide integer instruction Divide double integer instruction Integer absolute value instruction Double integer absolute value instruction Negative integer instruction Negative double integer instruction Square root integer instruction Square root double integer instruction Sum integer instruction Sum double integer instruction Add floating point number instruction Subtract floating point number instruction Multiply floating point number instruction Divide floating point number instruction Floating point number absolute value instruction Negative floating point number instruction Square root floating point number instruction Floating point number SIN instruction Floating point number COS instruction Floating point number TAN instruction Floating point number LN instruction floating point number EXP instruction floating point number exponentiation instruction Sum floating point number instruction AND word instruction AND double word instruction OR word instruction OR double word instruction Exclusive-OR word instruction Exclusive-OR double word instruction NOT word instruction NOT double word Instruction 16-bit circular shift right instruction 32-bit circular shift right instruction 16-bit circular shift left instruction 32-bit circular shift left instruction 16-bit carry circular shift right instruction 32-bit carry circular shift right instruction 16-bit carry circular shift left instruction 32-bit carry circular shift left instruction 16-bit shift right word instruction 32-bit shift right instruction 16-bit shift left instruction

DSHL

32-bit shift left instruction

EC20 Series PLC User Manual

Chapter 12 Instruction List Instruction Type Shift/rotate instructions

Enhanced bit logic instruction

High-speed I/O instruction

Control calculation instruction

External equipment instruction External equipment instruction

Real-time clock instruction

Compare contactor instructions

Instruction SFTL SFTR DECO ENCO BITS DBITS ZRST ZSET HCNT DHSCS DHSCR DHSCI DHSZ DHST DHSP SPD PLSY PLSR PWM PID RAMP TRIANGLE HACKLE FROM DFROM TO DTO VRRD REFF REF TRD TWR TADD TSUB HOUR LD= LDD= LDR= LD> LDD> LDR> LD>= LDD>= LDR>= LD< LDD< LDR< LD<= LDD<= LDR<= LD<> LDD<> LDR<> AND= ANDD= ANDR= AND>

Function Shift left byte instruction Shift right byte instruction Decode instruction Encode instruction Counting ON bit in word instruction Counting ON bit in double word instruction Batch bit reset instruction Set batch bit instruction High-speed counter drive instruction High-speed counting compare set instruction High-speed counting compare reset instruction High-speed counting compare interrupt trigger instruction High-speed counting zone compare instruction High-speed counting table compare instruction High-speed counting table compare pulse output instruction Pulse detection instruction Count pulse output instruction Count pulse with acceleration/deceleration output instruction PWM pulse output instruction PID instruction Ramp wave signal output instruction Triangle wave signal output instruction Hackle wave signal output instruction Read word form special module buffer register instruction Read double word form special module buffer register instruction Write word to special module buffer register instruction Write double word to special module buffer register instruction Read analog potentiometer value instruction Set input filtering constant instruction Instant refresh I/O instruction Read real-time clock instruction Write real-time clock instruction Add clock instruction Subtract clock instruction Timing list instruction Compare integer LD=instruction Compare double integer LD=instruction Compare floating point number LD= instruction Compare integer LD> instruction Compare double integer LD>instruction Compare floating point number LD>instruction Compare integer LD>=instruction Compare double integer LD>=instruction Compare floating point number LD>=instruction Compare integer LDinstruction Compare double integer LD<>instruction Compare floating point number LD<>instruction Compare integer AND=instruction Compare double integer AND=instruction Compare floating point number AND=instruction Compare integer AND>instruction

EC20 Series PLC User Manual

35

36

Chapter 12 Instruction List Instruction Type

Compare contactor instructions

Data conversion instruction

Word contactor instruction

Instruction ANDD> ANDR> AND>= ANDD>= ANDR>= AND< ANDD< ANDR< AND<= ANDD<= ANDR<= AND<> ANDD<> ANDR<> OR= ORD= ORR= OR> ORD> ORR> OR>= ORD>= ORR>= OR< ORD< ORR< OR<= ORD<= ORR<= OR<> ORD<> ORR<> ITD DTI FLT DFLT INT DINT BCD DBCD BIN DBIN GRY DGRY GBIN DGBIN SEG BLD BLDI BAND BANI BOR BORI BSET BRST BOUT

Function Compare double integer AND>instruction Compare floating point number AND>instruction Compare integer AND>=instruction Compare double integer AND>=instruction Compare floating point number AND>=instruction Compare integer ANDinstruction Compare integer AND<=instruction Compare double integer AND<=instruction Compare floating point number AND<=instruction Compare integer AND<>instruction Compare double integer AND<>instruction Compare floating point number AND<>instruction Compare integer OR=instruction Compare double integer OR=instruction Compare floating point number OR=instruction Compare integer OR>instruction Compare double integer OR>instruction Compare floating point number OR>instruction Compare integer OR>=instruction Compare double integer OR>=instruction Compare floating point number OR>=instruction Compare integer ORinstruction Compare integer OR<=instruction Compare double integer OR<=instruction Compare floating point number OR<=instruction Compare integer OR<>instruction Compare double integer OR<>instruction Compare floating point number OR<>instruction Integer to double integer instruction Double integer to integer instruction Integer to floating point number instruction Double integer to floating point number instruction floating point number to integer instruction floating point number to double integer instruction Word to 16-bit BCD instruction Couble word to 32-bit BCD instruction 16-bit BCD to word instruction 32-bit BCD to double word instruction Word to 16-bit gray code instruction Double word to 32-bit gray code instruction 16-bit gray code to word instruction 32-bit gray code to double word instruction Word to 7-segment encode Word bit contactor LD instruction Word bit contactor LDI instruction Word bit contactor AND instruction Word bit contactor ANI instruction Word bit contactor OR instruction Word bit contactor ORI instruction Word bit coil set instruction Word bit coil reset instruction Word bit coil output instruction

EC20 Series PLC User Manual

Chapter 12 Instruction List Instruction Type

Instruction MODBUS Communication XMT instruction RCV CCITT Data check instruction CRC16 Data check instruction LRC DCMP= DCMP> DCMP< Compare date instruction DCMP>= DCMP<= DCMP<> TCMP= TCMP> TCMP< Compare time instruction TCMP>= TCMP<= TCMP<>

Function MODBUS master station communication instruction Free-port sending (XMT) instruction Free-port receiving (RCV) instruction CCITT check instruction CRC16 check instruction LRC check instruction Compare date= instruction Compare date> instruction Compare date< instruction Compare date>= instruction Compare date<= instruction Compare date<> instruction Compare time= instruction Compare time> instruction Compare time< instruction Compare time>= instruction Compare time<= instruction Compare time<> instruction

EC20 Series PLC User Manual

37

38

Chapter 13 Special Register

Chapter 13 Special Register 13.1

Special Intermediate Register PLC state Address SM0 SM1 SM2 SM3 SM4 SM5 SM6

SM7

SM8 SM9

Title Monitoring run bit Initial run pulse bit Power on flag bit

Action and function R/W Always high in the RUN state, and always low in the STOP state R User program from STOP- RUN, set high for a operation cycle, then set low R It sets high upon system power on, and sets low after a operation cycle of user program R When detecting system error upon power on or STOP-RUN, the bit resets; if there is not System error R any system error, the bit is zero clearing Battery voltage too The bit is set when the battery voltage is too low; it is cleared when detecting the battery R low voltage is higher than 2.4V. AC power off The bit is set when detecting AC power off ( detecting time 40ms). If the power is on after R detecting the delay of power off detecting time (set in SD05), the bit is cleared. The bit is set when detecting DC24V power off (detecting time 50ms). If the DC24V power DC24V power off R is on after 50ms delay, the bit is cleared. When the bit is set as “1”, the system does not report the battery backup data loss or No battery work R forced list loss error when the system battery is invalidate. (only configured by the system mode block) Constant scan When the bit is set, the scan time is constant (only configured by the system block). R mode Input point start up When the bit is set, the setting X input point is ON and PLC can be STOP→RUN(only R mode configured by the system block).

Clock bit Address

Title

SM10

10ms clock

SM11

100ms clock

SM12

1s clock

SM13

1min clock

SM14

1hour clock

SM15

Scan period oscillation bit

Action and function Clock oscillation period is 10ms (turn over per half period, and the half of the first run period of the user program is 0) Clock oscillation period is 100ms (turn over per half period, and the half of the first run period of the user program is 0) Clock oscillation period is 1s (turn over per half period, and the half of the first run period of the user program is 0) Clock oscillation period is 1min (turn over per half period, and the half of the first run period of the user program is 0) Clock oscillation period is 1hour (turn over per half period, and the half of the first run period of the user program is 0) The bit turns over once per scan period ( the first period of the user program is 0)

R/W R R R R R R

User program executing error Address SM20 SM21 SM22

Title

Action and function R/W The bit is set when instruction executing error, and the error type code is written in R Instruction executing error SD20 at the same time. It is cleared after the executing instruction is correct. Instruction register number The bit is set when instruction executing error, and the error type code is written in R subscript overflow SD20 at the same time. The bit is set when instruction executing error, and the error type code is written in R Instruction parameter illegal SD20 at the same time. It is cleared after the executing instruction is correct.

Interrupt control Address SM40 SM41

Title X0 input rising/falling edge interrupt enable flag bit X1 input rising/falling edge interrupt flag bit

Action and function

R/W

Set as “1”, enable entering X0 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X1 rising edge (falling edge) interrupt

R/W

EC20 Series PLC User Manual

Chapter 13 Address SM42 SM43 SM44 SM45 SM46 SM47 SM65 SM66 SM67 SM68

Title X2 input rising/falling edge interrupt enable flag bit X3 input rising/falling edge interrupt enable flag bit X4 input rising/falling edge interrupt enable flag bit X5 input rising/falling edge interrupt enable flag bit X6 input rising/falling edge interrupt enable flag bit X7 input rising/falling edge interrupt enable flag bit High-speed counting interrupt enable flag bit Timing interrupt 0 enable flag bit Timing interrupt 1 enable flag bit Timing interrupt 2 enable flag bit

Special Register

Action and function

39 R/W

Set as “1”, enable entering X2 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X3 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X4 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X5 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X6 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering X7 rising edge (falling edge) interrupt

R/W

Set as “1”, enable entering Set as “1”, enable entering timing interrupt 0 Set as “1”, enable entering timing interrupt 1 Set as “1”, enable entering timing interrupt 2

R/W R/W R/W R/W

High-speed output control Address SM80 SM81 SM82 SM83

Title Y000 pulse output control Y001 pulse output control Y000 pulse output monitoring Y001 pulse output monitoring

Action and function Y000 pulse output stop instruction Y001 pulse output stop instruction Y000 pulse output monitoring (ON when busy, OFF when ready) Y001 pulse output monitoring (ON when busy, OFF when ready)

R/W R/W R/W R R

Pulse catch bit Address SM90 SM91 SM92 SM93 SM94 SM95 SM96 SM97

Title Input X000 pulse catch monitoring bit Input X001 pulse catch monitoring bit Input X002 pulse catch monitoring bit Input X003 pulse catch monitoring bit Input X004 pulse catch monitoring bit Input X005 pulse catch monitoring bit Input X006 pulse catch monitoring bit Input X007 pulse catch monitoring bit

Action and function Input X000 rising edge pulse catch Input X001 rising edge pulse catch Input X002 rising edge pulse catch Input X003 rising edge pulse catch Input X004 rising edge pulse catch Input X005 rising edge pulse catch Input X006 rising edge pulse catch Input X007 rising edge pulse catch

R/W R/W R/W R/W R/W R/W R/W R/W R/W

When STOP RUN, reset. When the port has HCNT high speed count drive instruction and SPD pulse density detecting instruction, the pulse catch of the port is invalid; and it is valid in other situations. Detailed information refers to SPD and HCNT instructions. The total input number of X0~X7 pulse in the hardware mode ( pulse catch, SPD instruction, no high-speed compare instruction for HCNT) is less than 60K; and is less than 30K in the software process ( using DHSCS, DHSCI, DHSZ, DHSP and DHST instructions in driving high-speed counter).

Free-port (COM 0) Address

Title

SM110 Port 0 sending enable flag

SM111 Port 0 receiving enable flag SM112 Serial port 0 sending END flag SM113 Serial port 0 receiving END flag SM114 Serial port 0 idle flag

Action and function When using XMT instruction, the bit is set; and the bit is cleared after sending is finished. When the bit is cleared, the current sending task of the Port 0 is paused; and it continues to send when the power-flow conducts. When using CRV instruction, the bit is set; and the bit is cleared after receiving g is finished. When the bit is cleared, the current receiving task of the Port 0 is paused; and it continues to receive when the power-flow conducts. The bit is set when the sending is finished. The bit is set when the receiving is finished. The flag bit is set when the serial port doesnot have communication task.

EC20 Series PLC User Manual

R/W R/W

R/W R/W R/W R

40

Chapter 13 Special Register Free-port (COM 1) Address SM120

SM121 SM122 SM123 SM124

Title

Action and function When using XMT instruction, the bit is set; and the bit is cleared after sending is Port 1 sending enable flag finished. When the bit is cleared, the current sending task of the Port 1 is paused; and it continues to send when the power-flow conducts. When using CRV instruction, the bit is set; and the bit is cleared after receiving g Port 1 receiving enable flag is finished. When the bit is cleared, the current receiving task of the Port 1 is paused; and it continues to receive when the power-flow conducts. Port 1 sending finished flag The bit is set when the sending is finished. Port 1 receiving finished flag The bit is set when the receiving is finished. Serial port 1 idle flag The flag bit is set when the serial port doesnot have communication task.

R/W R/W

R/W R/W R/W R

MODBUS communication Address SM135 SM136

Title MODBUS communication finished MODBUS communication mistake

Action and function The bit is set when the communication is finished . The bit is set when the communication is mistake.

R/W R/W R/W

Operation token flag Address

Title

SM180

Zero flag bit

SM181

carry/overflow flag bit

SM182

Borrow

SM185

Table compare flag

Action and function When the related operation result is zero, the bit is opened upon related instruction executing. Users can reset or set the bit manually. When the related operation is carry, the bit is opened upon related instruction executing. Users can reset or set the bit manually. When the related operation is borrow, the bit is opened upon related instruction executing. Users can reset or set the bit manually. The bit is set when the whole table record is finished.

R/W R/W R/W R/W R/W

System bus mistake flag Address

Title

SM190

Main module bus mistake flag bit

SM191

General module bus mistake flag bit

SM192

Special module bus mistake flag bit

Action and function 1. cleared when the addressing is right upon power on 2. STOP RUN, no mistake clearing. 3. cleared when download new program 4. the bit can cause the system stop operation. 1. the bit is set when the general module bus operation mistake occurs, and the system gives an alarm. 2. the flag is cleared automatically when the system error is removed. 1. the bit is set when the special module bus operation mistake occurs, and the system gives an alarm. 2. the flag is cleared automatically when the system error is removed.

R/W

R

R

R

Real-time clock error flag Address SM193

Title Read/write real-time clock error

Action and function The bit is set when the real-time clock error occurs. The flag is cleared automatically when the system error is removed.

EC20 Series PLC User Manual

R/W R

Chapter 13

Special Register

41

Up/down counter counting mode Address SM200 SM201 SM202 SM203 SM204 SM205 SM206 SM207 SM208

Address No. C200 C201 C202 C203 C204 C205 C206 C207 C208

Function

SM209

C209

R/W

SM210 SM211 SM212 SM213 SM214 SM215 SM216 SM217 SM218 SM219 SM220 SM221 SM222 SM223 SM224 SM225 SM226 SM227 SM228 SM229 SM230 SM231 SM232 SM233 SM234 SM235

C210 C211 C212 C213 C214 C215 C216 C217 C218 C219 C220 C221 C222 C223 C224 C225 C226 C227 C228 C229 C230 C231 C232 C233 C234 C235

R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W

When SM2 _ _ is high level, its corresponding C2_ _ changes to counting down. When SM2 _ _ is low level, its corresponding C2_ _ changes to counting up.

R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W

High-speed counter counting mode and monitoring Type

Single-phase single-end input

Address No. SM236 SM237 SM238 SM239 SM240 SM241 SM242 SM243 SM244

Title C236 C237 C238 C239 C240 C241 C242 C243 C244

Register content

When corresponding SM2 _ _ is high level, its corresponding C2_ _ changes to counting down. When corresponding SM2 _ _ is low level, its corresponding C2_ _ changes to counting up.

EC20 Series PLC User Manual

R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W

42

Chapter 13 Special Register Type Dual-phase single-end input

Dual-phase dual-end input

13.2

Address No. SM245 SM246 SM247 SM248 SM249 SM250 SM251 SM252 SM253 SM254 SM255

Title C245 C246 C247 C248 C249 C250 C251 C252 C253 C254 C255

Register content

R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W

When the C2_ _ of the dual-phase single-end and the dual-phase dual-end counters are counting down mode, the corresponding SM2_ _ changes to high level; when they are counting up mode, SM2_ _ changes to low level.

Special Data Register PLC state Address SD00 SD01 SD02 SD03 SD04

SD05

SD07 SD08 SD09 SD10 SD11

Title PLC type Version No. Capacity of user program System error code Battery voltage value AC power off detection delay time setting value

Action and function 20 represents EC20 For example: 100 represents 1.00 For example: 8 represents 8k-word programming System error code when storage 36 represents 3.6V, 1 represents 0.1V If the setting value is less than 10ms, then process it according to 10ms. If the setting value is bigger than 100ms, then process it according to 100ms. (Only configured through the system block).

Expansion I/0 module number Special module number Setting run control input point, using decimal system (such as X0 displays as 0, X10 displays as 8, the maximum number is 15). (Only configured through the system block). Main module I/O point High byte: input; Low byte: output Expansion module I/O High byte: input; Low byte: output point

R/W R R R R R

Range

R

10-100ms

R R R

0-15

R R

Run error code FIFO area Address SD20 SD21 SD22 SD23 SD24

Title Save run error code 0 Save run error code 1 Save run error code 2 Save run error code 3 Save run error code 4

Action and function

R/W R R R R R

Save the latest 5 run error type codes according to queue sequence; SD20 always saves the latest occurring error type code.

Range

FROM/TO error Address SD25 SD26

Title When using FROM/TO instruction, the mistaken special module numbering occurs ( starting from 0). When refreshing I/O, the mistaken I/O chip numbering occurs (starting from 0).

R/W

Range

R

Initial value: 255

R

Initial value: 255

Title Current scan value Minimum scan time Maximum scan time

R/W R R R

Range

Scan time Address SD30 SD31 SD32

Action and function Current scan time (unit: ms) Minimum value of scan time (unit: ms) Maximum value of scan time (unit: ms)

EC20 Series PLC User Manual

Chapter 13 Address

SD33

SD34

Title

Special Register

Action and function Initial value: 0ms, unit: 1ms. When the constant scan time is longer than the setting value of user monitoring overtime, user program gives overtime alarm. When some scan cycle of user program is Constant scan time longer than the constant scan time, the cycle constant scan mode is setting value invalid automatically and no alarm. When the setting value of SD33 is bigger than 1000ms, process it according to 1000ms. (Only configured through the system block). Initial value: 100ms, can be modified by user program and will be effective in the next scan cycle. User program When SD34 value is less than 100, process it according to 100. overtime setting value When the SD34 value is bigger than 1000, process it according to 1000. (Only configured through the system block).

43

R/W

Range

R

0-1000ms

R

100-1000ms

Input filtering time constant setting Address Title SD35 Input filter regulation constant

Action and function (Only configured through the system block).

R/W R

Range 0-60

R/W R/W R/W R/W R/W R/W R/W

Range

R/W

Range

High-speed pulse output monitoring Address SD50 SD51 SD52 SD53 SD54 SD55

Title PLSR/PLSY instruction output Y0 pulse total number (high byte) PLSR/PLSY instruction output Y0 pulse total number (low byte) PLSR/PLSY instruction output Y1 pulse total number (high byte) PLSR/PLSY instruction output Y1 pulse total number (low byte) PLSR/PLSY instruction output Y1, Y0 pulse total number (high byte) PLSR/PLSY instruction output Y1, Y0 pulse total number (low byte)

Timing interrupt cycle Address SD66 SD67 SD68

Title Timing interrupt 0 cycle setting value Timing interrupt 1 cycle setting value Timing interrupt 2 cycle setting value

Register content When the value is beyond 1~32767, the interrupt does not be triggered. When the value is beyond 1~32767, the interrupt does not be triggered. When the value is beyond 1~32767, the interrupt does not be triggered.

R/W

1~32767ms

R/W

1~32767ms

R/W

1~32767ms

Real-time clock Address Title Register content SD100 Year For real-time clock SD101 Month For real-time clock SD102 Date For real-time clock SD103 Hour For real-time clock SD104 Minute For real-time clock SD105 Second For real-time clock SD106 Week For real-time clock Users can but set through TWR instruction or the host.

R/W R R R R R R R

EC20 Series PLC User Manual

Range 2000~2099 1~12 months 1~31 days 0~23 hours 0~59 minutes 0~59 seconds 0(Sunday)~6(Saturday)

44

Chapter 13 Special Register Free-port receiving control and state (COM0) Address

Title Free-port 0 mode state word

SD110.0-SD110.2 Free-port baud rate

SD110.3 Stop bit SD110.4 parity check SD110

SD110.5 parity check permission SD110.6 Character data bit

SD111 SD112 SD113 SD114

SD115

SD116 SD117

SD110.7 SD110.8 free-port receiving start mode SD110.9 free-port receiving end mode SD110.10~SD110.11 SD110.12-SD110.15 Start word End word Word overtime time Frame overtime time

Register content

R/W R

Range

b2 , b1 , b0 000=38,400 baud rate 001=19,200 baud rate 010=9,600 baud rate 011=4,800 baud rate 100=2,400 baud rate 101=1,200 baud rate 0 = 1 bit stop bit 1 = 2 bit stop bit 0= even parity 1=odd parity 0=no parity check 1=parity check Every character data bit 0=8-bit character 1=7-bit character Reserved 1=have specified start character 0=no specified start character 1-have specified end character 0-no specified end character Reserved Reserved

Default 0ms (ignoring word-space overtime) Default 0ms( ignoring frame overtime) Bit 0: set when user stop receiving Bit 1: set when receiving specified end word Bit 2: set when receiving maximum character No. Receiving end message code Bit 3: set when word-space overtime Bit 4: set when (frame) receiving overtime Bit 5: set when parity check error Bit 6~15: reserved. Users can ignore it. Current receiving character Current receiving character total number

R/W R/W R/W R/W

1~32767ms 1~32767ms

R

R R

Free-port receiving control and state (COM 1) Address

Title Free-port 1 mode state word

SD120.0-SD120.2 Free-port baud rate

SD120

SD120.3 Stop bit SD120.4 parity check SD120.5 parity check permission SD120.6 Every character data bit

Register content b2, b1, b0 000=38,400 baud rate 001=19,200 baud rate 010=9,600 baud rate 011=4,800 baud rate 100=2,400 baud rate 101=1,200 baud rate 0 = 1 bit stop bit 1 = 2 bit stop bit 0=even parity 1=odd parity 0=no parity check 1=parity check Every character data bit 0=8-bit character 1=7-bit character

EC20 Series PLC User Manual

R/W R

Range

Chapter 13 Address SD120

SD121 SD122 SD123 SD124

Title SD120.7 SD120.8 free-port receiving start character mode SD120.9 free-port receiving end character mode SD120. 10-SD120.15 Start character End character Word-space overtime time Frame overtime time

SD125

Receiving end message code

SD126

Current receiving character Current receiving character total number

SD127

Register content Reserved 1=have specified start character 0=no specified start character 1-have specified end character 0-no specified end character Reserved

Default 0ms (ignoring word-space overtime) Default 0ms( ignoring frame overtime) Bit 0: set when user stop receiving Bit 1: set when receiving specified end word Bit 2: set when receiving maximum character No. Bit 3: set when word-space overtime Bit 4: set when (frame) receiving overtime Bit 5: set when parity check error Bit 6~15: reserved. Users can ignore.

Special Register R/W

Range

R/W R/W R/W R/W

0-32767ms 0-32767ms

R

R R

MODBUS setting Address SD130 SD135 SD136 SD137 SD139

Title Station number setting (COM0) Station number setting (COM1) Max. overtime setting (after sending and before receiving) (COM1) Retry times (COM1) MODBUS main station error code (COM1)

R/W R/W R/W R/W R/W R

range

0-100

DHSP and DHST instruction application Address SD180 SD181 SD182 SD183 SD184

Title DHSP table compare output high byte data DHSP table compare output low byte data DHST or DHSP table compare high byte data DHSTor DHSP table compare low byte data Register number of the current executing table

EC20 Series PLC User Manual

R/W R/W R/W R/W R/W R/W

range

45

Related Documents

Gxv3000 Series User Manual
December 2019 19
Plc
June 2020 19
Plc
October 2019 33

More Documents from ""

April 2020 4
October 2019 21
April 2020 4
Msx-secundaria
April 2020 10
December 2019 14