background image

5

Binary, decimal and hexadecimal code

Before going into the Hitachi PLC details, it is important to understand the numbering system of the

PLC. Electric devices like PLC’s can handle only digital data. The minimum unit of digital data is a

“bit”. 1 bit has two states, 0 or 1.

4 bits can give us 16 different values because of 2

4

 as below left.

Since 4 bits of data is not easy to handle, the data is translated to hexadecimal code 0 to F as above
right. One hexadecimal code (= 4 bits) can express 16 different values.
4 hexadecimal codes have 65,535 values (= 16

4

). This unit (4 hexadecimal codes = 16 bits) is called

as “

Word

”. Normally Hitachi PLC handles binary data and word data.

This is a comparison table of one “

Word

” in binary, decimal and hexadecimal expressions.

2

10

16

2

10

16

0000 0000 0000 0000

0

H 0000

0000 0000 0011 1111

63

H 003F

0000 0000 0000 0001

1

H 0001

0000 0000 0100 0000

64

H 0040

0000 0000 0000 0010

2

H 0002

0000 0000 0000 0011

3

H 0003

0000 0000 1111 1111

255

H 00FF

0000 0000 0000 0100

4

H 0004

0000 0001 0000 0000

256

H 0100

0000 0000 0000 0101

5

H 0005

0000 0000 0000 0110

6

H 0006

0000 0011 1111 1111

1023

H 03FF

0000 0000 0000 0111

7

H 0007

0000 0100 0000 0000

1024

H 0400

0000 0000 0000 1000

8

H 0008

0000 0000 0000 1001

9

H 0009

0000 0111 1111 1111

2047

H 07FF

0000 0000 0000 1010

10

H 000A

0000 1000 0000 0000

2048

H 0800

0000 0000 0000 1011

11

H 000B

0000 0000 0000 1100

12

H 000C

0000 1111 1111 1111

4095

H 0FFF

0000 0000 0000 1101

13

H 000D

0001 0000 0000 0000

4096

H 1000

0000 0000 0000 1110

14

H 000E

0000 0000 0000 1111

15

H 000F

0111 1111 1111 1111

32767

H 7FFF

0000 0000 0001 0000

16

H 0010

1000 0000 0000 0000

32768

H 8000

0000 0000 0001 1111

31

H 001F

1111 1111 1111 1111

65535

H FFFF

0000 0000 0010 0000

32

H 0020

0 0 0 0

0 0 0 1

0 0 1 0

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

Binary code

Hexadecimal code

4 bits

16 values

0 0 0 1

1

0 0 1 0 1 1 1 0 1 1 1 1

2

E

F

Word

0

1

or

Summary of Contents for PLC

Page 1: ...No Contents Page 1 Introduction 2 2 Hitachi PLC 4 3 Technical Specifications 10 4 Setting up 11 5 Configuration 13 6 Wiring 16 7 Programming 17 Getting Started Hitachi PLC ...

Page 2: ...programming editor The both in one CD package High speed micro processor EH 150 and MICRO EH has a 32 bits RISC microprocessor called Super H Compact size The compact PLC has more capabilities with high reliability and saves more space and cost Open network EH 150 series has Profibus DP master slave modules and DeviceNet master slave modules which will increase application range Flexible product l...

Page 3: ...U The CPU executes scans a user program When the CPU reaches the end of the program the CPU will return to the program top and execute again this process is continuous In every cycle input data is read and output data is written once each Input and output data is effective once in a scan This is called Refresh Processing Scan time cycle time depends on your program Normally 5 to 30ms Time 1 cycle ...

Page 4: ...am RUN Program CPU module PLC CPU module FLASH memory Program Program memory SRAM Data memory SRAM Retentive Data memory SRAM Micro processor FLASH memory keeps the program after power OFF CPU module FLASH memory Program memory SRAM Data memory SRAM Retentive Data memory SRAM Micro processor Input Output ç ç ç è è è Programming on PC Programming software required see page 1 ...

Page 5: ...e Expansion connector LED indication Terminal block n EH 150 Input terminal Output terminal Communication port 2 RS 422 485 Expansion connector LED indication RUN STOP switch Potentiometer 2 Communication Port 1 è RUN RS 232C Communication port 1 RS 232C 422 485 Communication port 2 RS 232C RUN STOP switch Reset button Error LED RUN LED Battery é Supported by CPU308 316 448 ...

Page 6: ...10 2 H 0002 0000 0000 0000 0011 3 H 0003 0000 0000 1111 1111 255 H 00FF 0000 0000 0000 0100 4 H 0004 0000 0001 0000 0000 256 H 0100 0000 0000 0000 0101 5 H 0005 0000 0000 0000 0110 6 H 0006 0000 0011 1111 1111 1023 H 03FF 0000 0000 0000 0111 7 H 0007 0000 0100 0000 0000 1024 H 0400 0000 0000 0000 1000 8 H 0008 0000 0000 0000 1001 9 H 0009 0000 0111 1111 1111 2047 H 07FF 0000 0000 0000 1010 10 H 00...

Page 7: ...w n External I O External I Os X Y WX WY etc are direct addresses for each digital input output module or analog input output module Please note bit I Os X and Y are decimal expression WX WY can be used as access command or data for high function modules like the counter module X 0 WX 0 X 1 X 2 X 13 X 14 X 15 X 16 WX 1 X 17 X 18 X 29 X 30 X 31 X 32 WX 2 X 33 X 34 X 45 X 46 X 47 DX 0 DX 1 DX 2 B i ...

Page 8: ...re physically separated memory areas M L Note M WM and DM are in one common memory area L WL DL as well WR 0 WR 1 WR 2 DR 0 DR 1 DR 2 No bit access No bit access No bit access R 0 R 1 R 2 R 3 R 4 R 5 R 6 R 7 R 8 R 9 R A R B R C R D R E R F R 10 R 11 R 12 R 13 R 14 R 15 R 16 R 17 R 18 R 19 R 1A R 1B R 1C R 1D R 1E R 1F R 20 R 21 M 0 WM 0 M 1 M 2 M D M E M F M 10 WM 1 M 11 M 12 M 1D M 1E M 1F M 20 W...

Page 9: ... Y100 Y111 n 10 14 28 points DI 6 DO 4 DI 8 DO 6 DI 16 DO 12 X0 X12 Y100 Y109 WX30 31 WY40 n 23 points DO 10 DI 13 AI 2 AO 1 n Expansion units DI DO AI AO Digital Input Digital Output Analog Input Analog Output Y1016 Y1021 X2000 X2007 Y2016 Y2021 X3000 X3007 Y3016 Y3021 X4000 X4007 Y4016 Y4021 X1000 X1007 DI 8 DO 6 ...

Page 10: ...s for hexadecimal WX 0 H1234 0001 0010 0011 0100 WY 5 H00FF 0000 0000 1111 1111 X15 X0 X7 X8 Y15 Y0 Y7 Y8 Bit number decimal Slot number 0 7 Unit number 0 1 I O type Word number Slot number 0 7 Unit number 0 1 I O type Bit X Word WX X0000 X0015 CPU Power supply Basic unit Unit 0 Expansion unit Unit 1 I O controller module EH XD16 EH YTP64 EH YTP32 EH AX8V EH XD16 EH AX8V X0100 X0115 WX020 WX027 EH...

Page 11: ...oints DIF0 511 512 points DFN0 511 1 Only 23 28 points module 2 TD is up to 256 TD0 255 and counter CU is up to 511 CU0 511 for EH 150 series TD number is not allowed to use same as CU number and vice versa Special internal registers R WR The special internal registers are some flags diagnostic information and parameter setting area to operate the PLC easily and flexibly The following list is a pa...

Page 12: ...RF01A WRF03D 38 4 kbps ON ON 19 2 kbps ON 9600 bps ON Standard 4800 bps 4800 bps ON H0000 9600 bps ON H0100 19 2 kbps ON H0200 38 4 kbps ON H0300 57 6 kbps ON H0400 Port 1 RS 232C Dedicated port Programming HMI Modem mode 2400 bps ON H0500 4800 bps H8000 9600 bps H8100 19 2 kbps H8200 Standard 38 4 kbps H8300 4800 bps HA0xx 9600 bps HA1xx 19 2 kbps HA2xx Port 2 RS422 485 Dedicated port Programming...

Page 13: ...s SW 3 4 OFF OFF Modem mode SW 2 ON Port 1 General purpose port SW 5 OFF Normal mode SW 2 OFF 4 800 bps SW 6 T OFF OFF 9 600 bps SW 6 T ON OFF 19 200 bps SW 6 T OFF ON Port 2 Dedicated port Programming HMI 38 400 bps SW 6 T ON ON SW1 6 Dip switch SW T Toggle switch Baud rate for PC Programming software The baud rate setting procedure depends on the programming software Pro H Right mouse click on R...

Page 14: ... The I O configuration of MICRO EH is fixed for each model This table can be read out from the PLC when on line 10 14 28 points basic module Unit 0 Unit 1 Slot 0 X48 Slot 1 Y32 Slot 2 Slot 3 Slot 4 23 points basic module Unit 0 Unit 1 Slot 0 X48 Slot 1 Y32 Slot 2 Empty 16 Slot 3 WX 4 Slot 4 WY 4 Expansion module Unit 0 Unit 1 Slot 0 X48 B1 1 Slot 1 Y32 Slot 2 Slot 3 Slot 4 PC Ø I O configuration Ø...

Page 15: ...h allows the PLC to work with the wrong I O configuration Memory size Configure memory size in programming software accordingly The memory size can be read out from PLC when on line as well as the I O configuration MICRO EH all models 3 k step 4 k step EH CPU104 4 k step EH CPU208 8 k step EH CPU308 8 k step EH CPU316 16 k step EH 150 EH CPU448 48 k step Note Actual memory size of MICRO EH is 3 k ...

Page 16: ...ing or testing On programming software Pro H Double click on Resource configuration Operation parameters Ladder Editor for Win Utility CPU setting Operation parameters Retentive area Internal memory R WR WM TD can be configured as Retentive area which will be kept by a battery after power off The battery keeps data not only in the retentive area but also the real time clock User program is kept in...

Page 17: ... 4 C0 2 6 C1 7 5 8 10 9 C2 12 IN1 IN1 11 IN2 IN2JP IN2 IN1JP AC 0 GND AC V0 2 1 C0 4 5 C1 3 6 7 C3 C2 8 C5 9 C4 IO VO VC IC Connect jumper in current mode DC input Analog input Transistor output Relay output Analog output 0 1 8 9 2 3 10 11 4 5 12 13 6 7 14 15 C S MICRO EH EH D10DTP EH 150 EH YTP16 MICRO EH EH A23DRP RUN NC 0 1 2 3 C0 4 5 DC input Transistor output 24V 0V GND 0 1 2 3 C0 V0 RUN inpu...

Page 18: ... to be ON and the coil is the result Basically input X is used for the contact and output Y is used for the coil The internal I Os R M can be used for both cases depending on your program Y can work as a contact Hitachi PLC handles the following I O types A contact Normally open Normal coil B contact Normally close Set Reset coil MCS MCR coil available Edge detection Low è High Timer Other timers ...

Page 19: ... B A B X0 Y100 Edge detection á DIF X0 Y100 DIF 0 1 scan time X0 Y100 Edge detection â DFN X0 Y100 DFN 0 1 scan time X0 X1 Set Reset coil X0 Y100 S X1 Y100 R Y100 X0 Y100 X0 Y100 AND X1 X1 X0 Y100 X0 Y100 OR X1 X1 Internal memory R M can be used instead of X and Y X0 Y100 X0 Y100 NOT ...

Page 20: ...X0 TD 0 TD 0 Y100 12 0 1s X0 12 TD 0 0 1s Y100 n Pro H LD n LADDER EDITOR TD 0 0 1s Y100 12 X0 n Pro H FBD X0 TD 0 Y100 1 2s TC 0 12 TC is a word data counting 0 up to 65 535 Single Shot timer SS X0 SS 0 TD 0 Y100 12 0 1s n LADDER EDITOR X0 12 SS 0 0 1s Y100 n Pro H LD SS 0 0 1s Y100 12 X0 n Pro H FBD X0 TD 0 Y100 1 2s TC 0 12 TC is a word data counting 0 up to 65 535 ...

Page 21: ...re available Basic commands 35 Arithmetical commands 22 Application commands 25 Control commands 12 Special function commands 16 Comparison box H3000 WX 3 Y100 n LADDER EDITOR WX 3 16 3000 GT 0 0 1s Y100 n Pro H LD GT 0 0 1s Y100 16 3000 WX 3 n Pro H FBD WX 3 Y100 While WX 3 exceeds H3000 Y100 is ON H3000 GT Greater Than ...

Reviews: