Vous êtes sur la page 1sur 47

AC500

AC500 ModbusRTU
ABB

Content
1

............................................................................................................................. 3
1.1

....................................................................................................................... 3

1.2

............................................................................................................ 3

1.3

....................................................................................................................... 3

Modbus

....................................................................................................... 7

2.1

....................................................................................................................... 7

2.2

Modbus

........................................................................................................ 8

2.3

..................................................................................................................... 10

2.4

..................................................................................................................... 13

Modbus

..................................................................................................... 16

3.1

..................................................................................................................... 16

3.1.1

.................................................................................................... 16

3.1.2

Modbus

3.2

.............................................................................................................. 18

3.2.1

........................................................................................................... 18

3.2.2

Modbus

3.2.3

.......................................................................................... 19
................................................................................................ 22

3.3

................................................................................................ 17

.......................................................................................................... 24

AC500

Modbus RTU

4.1

ABB

............................................................ 26

.................................................................................................................. 26

4.1.1

........................................................................................................ 26

4.1.2

........................................................................................................ 26

4.1.3

................................................................................................ 27

4.2

AC500 PLC

4.3

............................................................................................................. 28
COM_MOD_MAST

4.3.1

.......................................................................... 29

........................................................................................................ 29

ABB

PLC

AC500/Issue: 04.2012

4.3.2

.................................................................................................... 29

4.3.3

............................................................................................. 29

4.3.4

............................................................................... 30

4.3.5

.................................................................................. 30

4.4

MODBUS_RTU_AC500_V1.lib ..................................................... 31

4.4.1

........................................................................................................... 31

4.4.2

.................................................................................................... 33

4.4.3
4.5

MODBUS_RTU_AC500

AC500 ACS_Drives

........................................... 35

............................................................................................ 37

4.5.1

........................................................................................................... 37

4.5.2

ACS_DRIVES_BASIC_AC500_V13.lib .................................................................... 37

4.5.3

ACS_DRIVES_COM_MBRTU_AC500_V13.lib ........................................................ 39

4.5.4

ACS_DRIVES_CTRL_AC500_V13.lib ..................................................................... 40

4.5.5

............................................................................................................... 45

ABB

PLC

AC500/Issue: 04.2012

1
ModbusRTU

AC500
CPU

AC500

AC500
ABB

Modbus

CPU
ModbusRTU

PLC

COM1/2
ABB

Control Builder Plus

CoDeSys

NOTICE

Control Builder Plus

CoDeSys

AC500
ABB

PLC

NOTICE

1.1
Reference
1
2

Description

CoDeSys
ACS510

1.2
Hardware
PM583-ETH V2.1.3
ACS510

Software
PS501: V2.1
DriveWindow Light 2

1.3
1

AC500

CPU PM583-ETH

COM1

PM583-ETH

Modbus

PM583-ETH

Modbus RTU
Modbus

Modbus
ABB

PLC

AC500/Issue: 04.2012

AC500

AC500

ACS510

CPU

COM1
Modbus

COM2

Modbus

NOTICE

CPU

COM1

ABB

COM2

modbus
RS485 RS232

PLC

AC500/Issue: 04.2012

COM2

RS232
RS485
AC500 eCo

NOTICE

31
RS485

CPU

CPU

1.

COM1

120
COM1

NOTICE

2.

ABB

COM2

COM2

PLC

AC500/Issue: 04.2012

ABB

PLC

AC500/Issue: 04.2012

2 Modbus
2.1
-

Control builder plus

IP

PM583ETH V2.1

CPU

IP

CPU
Control Builder Plus

CPU

IP

PM583-ETH

192.168.0.161

MAC

IP
PLC

ABB

PLC

AC500/Issue: 04.2012

IP

AC500

IP

IP config tool

IP

IP
1.

PS501

PC

IP

NOTICE

2.
3.
4.
5.
6.
7.

2.2

PS501 PC
PLC PC
PLC

IP

Stop
PLC

PLC

IP
IP

Modbus
COM1_Online_Access
COM1-Modbus

ABB

PLC

AC500/Issue: 04.2012

COM1-Modbus

MODBUS

COM1-Modbus

Modbus

COM1-Modbus

RTS

RS485

Telegram

RS232

None

1~31

ABB

PLC

AC500/Issue: 04.2012

2.3
CodeSys

ABB

PLC

10

AC500/Issue: 04.2012

TCP/IP

ABB

PLC

11

AC500/Issue: 04.2012

COM2

PS501

PC

PLC

ABB

PLC

12

AC500/Issue: 04.2012

PLC

AC500 CPU

2.4
Modbus

ABB

PLC

13

AC500/Issue: 04.2012

ABB

PLC

14

AC500/Issue: 04.2012

ABB

PLC

15

AC500/Issue: 04.2012

3 Modbus
3.1
3.1.1
-

Control builder plus

PM583ETH V2.1

PM583-ETH

ABB

PLC

16

AC500/Issue: 04.2012

IP
Control Builder Plus

CPU

IP

PM583 -ETH 192.168.0.1


IP

AC500

IP

IP config tool

IP

3.1.2

Modbus

Modbus
2.2

Modbus

COM1-Modbus

ABB

PLC

17

AC500/Issue: 04.2012

RTS

RS485

Telegram

RS232

None

1.

0
RTS

2.

NOTICE

3.

3.2
CodeSys

3.2.1
ModbusRTU
AC500

Modbus

COM_MOD_MAST

Modbus_AC500_V10.LIB

ModbusRTU

COM_MOD_MAST
EN
COM
SLAVE
FCT
TIMEOUT
ADDR
NB
DATA

BOOL
BYTE
BYTE
BYTE
WORD
WORD
WORD
DWORD

DONE
ERR
ERNO

BOOL
BOOL
WORD

COM1, COM2

ms

Target System AC500/S500 FBP AC500


Modbus

ABB

PLC

18

AC500/Issue: 04.2012

3.2.2 Modbus

FCT

AC500 CPU

DEC
01 02
03 04
05
06
07
15
16

Modbus

HEX
01 02
03 04
05
06
07
0F
10

Modbus
V01.041

2000
125
1
1
8
1968
123

CPU

/62

V01.041
/61

Modbus
Modbus

AC500 CPU

Modbus

Modbus

Modbus

AC500 CPU
128K

0000hex
%I

ABB

%Q

FFFFhex

1
Modbus

Modbus

PLC

19

AC500/Issue: 04.2012

Modbus
HEX
DEC
0
0
0000
0001

0002

0003

...
7FFE

32766

BYTE

BOOL

WORD

DWORD

%MB0.0
%MB0.1
%MB0.2
%MB0.3
%MB0.4
%MB0.5
%MB0.6
%MB0.7

%MX0.0.0...%MX0.0.7
%MX0.1.0...%MX0.1.7
%MX0.2.0...%MX0.2.7
%MX0.3.0...%MX0.3.7
%MX0.4.0...%MX0.4.7
%MX0.5.0...%MX0.5.7
%MX0.6.0...%MX0.6.7
%MX0.7.0...%MX0.7.7

%MW0.0

%MD0.0

%MB0.65532

%MX0.65532.0
...%MX0.65532.7
%MX0.65533.0
...%MX0.65533.7
%MX0.65534.0
...%MX0.65534.7
%MX0.65535.0
...%MX0.65535.7

%MW0.32766

%MB1.0
%MB1.1
%MB1.2
%MB1.3
%MB1.4
%MB1.5
%MB1.6
%MB1.7

%MX1.0.0...%MX1.0.7
%MX1.1.0...%MX1.1.7
%MX1.2.0...%MX1.2.7
%MX1.3.0...%MX1.3.7
%MX1.4.0...%MX1.4.7
%MX1.5.0...%MX1.5.7
%MX1.6.0...%MX1.6.7
%MX1.7.0...%MX1.7.7

%MW1.0

%MB1.65532

%MX1.65532.0
...%MX1.65532.7
%MX1.65533.0
...%MX1.65533.7
%MX1.65534.0
...%MX1.65534.7
%MX1.65535.0
...%MX1.65535.7

%MW1.32766

%MB0.65533
7FFF

32767

%MB0.65534
%MB0.65535

%MW0.1
%MW0.2

%MD0.1

%MW0.3

%MD0.16383

%MW0.32767

1
8000

32768

8001

32769

8002

32770

8003

32771

...
FFFE

65534

%MB1.65533
FFFF

65535

%MB1.65534
%MB1.65535

ABB

PLC

%MD1.0

%MW1.1
%MW1.2

%MD1.1

%MW1.3

%MD1.16383

%MW1.32767

20

AC500/Issue: 04.2012

Modbus
HEX
DEC
0
0
0000
1
0001
2
0002
3
0003
4
0004
5
0005
6
0006
7
0007
8
0008
9
0009
10
000A
11
000B
12
000C
13
000D
14
000E
15
000F
16
0010
17
0011
18
0012
19
0013
20
0014
21
0015
22
0016
23
0017
24
0018
25
0019
26
001A
27
001B
28
001C
29
001D
30
001E
31
001F
...
...
4095
0FFF
4096
1000
...
...
32767
7FFF
32768
8000
...
...
65535
FFFF

ABB

BYTE

BOOL

WORD

DWORD

%MB0.0

%MX0.0.0
%MX0.0.1
%MX0.0.2
%MX0.0.3
%MX0.0.4
%MX0.0.5
%MX0.0.6
%MX0.0.7
%MX0.1.0
%MX0.1.1
%MX0.1.2
%MX0.1.3
%MX0.1.4
%MX0.1.5
%MX0.1.6
%MX0.1.7
%MX0.2.0
%MX0.2.1
%MX0.2.2
%MX0.2.3
%MX0.2.4
%MX0.2.5
%MX0.2.6
%MX0.2.7
%MX0.3.0
%MX0.3.1
%MX0.3.2
%MX0.3.3
%MX0.3.4
%MX0.3.5
%MX0.3.6
%MX0.3.7
...
%MX0.511.7
%MX0.512.0
...
%MX0.4095.7
%MX0.4096.0
...
%MX0.8191.7

%MW0.0

%MD0.0

%MB0.1

%MB0.2

%MB0.3

...
%MB0.511
%MB0.512
...
%MB0.4095
%MB0.4096
...
%MB0.8191

PLC

%MW0.1

...
%MW0.255
%MW0.256
...
%MW0.2047
%MW0.2048
...
%MW0.4095

21

...
%MD0.127
%MD0.128
...
%MD0.1023
%MD0.1024
...
%MD0.2047

AC500/Issue: 04.2012

ADDR

Modbus

Modbus
M
M

:
ADDR
BYTE
BIT

%MX0.BYTE.BIT
10
ADDR/ 8
ADDR mod 8

ADDR := 16#2002:= 8194


BYTE := 8194 / 8 := 1024
BIT := 8194 mod 8 := 2
%MX0.1024.2
1.

%MW0.0 ..%MW1.32767
%MW0.0 ..%MW0.4095

NOTICE

2.
3.

3.2.3
Modbus
%MW0.100
%MW0. 0

20
20

%MW0. 50
%MW0.100

20
20

PM583-ETH
192.168.0.1

PM564-R-ETH
192.168.0.161

MW0.0~MW0.19

MW0.100~MW0.119

MW0.50~MW0.69

ABB

PLC

22

AC500/Issue: 04.2012

2s
Read_Success

Read _Success
Read_errno

reset

1
sum

1
Modbus_Receive

EN
CPU

modbus
n
20

ABB

COM

SLAVE

modbus
NB

1
modbus

Daddr

AC500
FCT=3
100

Data

PLC

23

AC500/Issue: 04.2012

Write_REQ
Write_REQ

Write_REQ

Write_Success

Write_Success

Write_errno
Modbus_Send

3.3
Modbus
IP

2.3

Write_Req

ABB

PLC

24

AC500/Issue: 04.2012

ABB

PLC

25

AC500/Issue: 04.2012

4 AC500

Modbus RTU

ABB

4.1
4.1.1
9802 COMM PROTOCOL SEL(

=1(

MODBUS)

NOTICE

4.1.2
9802

Modbus
5301 EFB PROTOCOL ID
ID

9802 COMM PROT SEL


XXYY
=

xx

ID, YY =

5302 EFB STATION ID


RS485

5303 EFB BAUD RATE


RS485
kbits/s
1.2 kb/s; 2.4 kb/s; 4.8 kb/s; 9.6 kb/s;
19.2 kb/s ; 38.4 kb/s; 57.6 kb/s; 76.8
kb/s
5304 EFB PARITY
RS485

9.6

0 = 8 NONE1 8
1 = 8 NONE2 8
2 = 8 EVEN1 8
3 = 8 ODD1 8

ABB

PLC

26

AC500/Issue: 04.2012

5305 EFB CTRL PROFILE


EFB
0 = ABB DRV LIM
ABB
ACS400
1 = DCU PROFILE
32 DCU

0
/

2 = ABB DRV FULL


ABB
ACS600/800

(5302)

NOTICE

4.1.3
/

Modbus
ABB

1001

10 (

10 (

3(

40001

Ext2

)
1003

40001
Ext1

)
1002

AC500

40002/40003

1/2

ABB

PLC

27

AC500/Issue: 04.2012

Modbus
ABB

AC500

1102

1/2

8(

1103

8(

40002

1106

8(

40003

40001

11

11

4.2 AC500 PLC


AC500
3.1

Modbus

Modbus

COM1-Modbus

AC500
RTS

RS485

Telegram

AC500

0
1.

2.

NOTICE

ABB

AC500

PLC

28

AC500/Issue: 04.2012

4.3

COM_MOD_MAST

4.3.1
Modbus RTU

modbus1
EN

B1

COM_MOD_MAST
DATA
B1

ModMast_DATA2
Modbus2
BLINK

DI_START
ModMast_DATA1

4.3.2
1

16#0000

1142 16

476

100

16#0000

1143

16

477

16#0000

1151

16

47F

4.3.3
16#0001
20000
1105

ABB

50.00Hz

0
0

20000
0

1105
10000

PLC

1105

25.00Hz

29

AC500/Issue: 04.2012

4.3.4
16
16#0003
16#0003~16#0011
1~8

4.3.5
Modbus RTU

COM_MOD_MAST
Done

ABB

PLC

EN

30

AC500/Issue: 04.2012

4.4

MODBUS_RTU_AC500_V1.lib

4.4.1
MODBUS_RTU_AC500

COM1

COM2
COM

128

(JOB)

MODBUS_RTU_AC500
MODBUS_RTU_AC500

1)

COM_MOD_MAST
COM_MOD_MAST
COM_RTU (BYTE) TIMEOUT_RTU (WORD)
(BOOL) ERR_RTU (BOOL) ERNO_RTU (WORD)

ABB

PLC

31

DONE

AC500/Issue: 04.2012

2) MODBUS_RTU_AC500
ENABLE_RTU (BOOL)
ENABLE_RTU=TRUE :
JOB_END_RTU
ENABLE_RTU=FALSE :
ENABLE_RTU=FALSE->TRUE

(JOB)

JOB_START_RTU
(JOB)
(JOB)

RESET_RTU (BOOL)
RESET_RTU=FALSE :
(JOB)
RESET_RTU=TRUE :
(JOB)
RESET_RTU: FALSE->TRUE
JOB_START_RTU

(JOB)

ENABLE_RTU=TRUE)

(JOB)

(JOB)

JOB_START_RTU/JOB_END_RTU (INT)
JOB_START_RTU
(JOB_END_RTU)
JOB_START_RTU
(JOB_END_RTU)
JOB_START_RTU
(JOB_END_RTU)
:
JOB_START_RTU<JOB_END_RTU
1<JOB_START_RTU<128
1<JOB_END_RTU<128
ERR_LIM_RTU

(JOB)

JOB_RTU (STRUCT from type JOB )


JOB_RTU
(JOB)
JOB_RTU
SLAVE,FCT,ADDR,NB
(
COM_MOD_MAST
)
JOB_MOD: JOB:= (JOB1:=16#002F,16#0003,16#2000,16#0001,
(*master reads one word from slave47, address 16#2000 *)
JOB2:=16#002F,16#0010,16#2001,16#0002,
(*master writes two words to slave47, address 16#2001 *)
JOB3:=16#002F,16#0001,16#2002,16#0003,
(*master reads 3 bit from slave47, address 16#2002*)
JOB4:=16#002F,16#000F,16#2003,16#0004);
(*master writes 4 bit to slave47, address 16#2003 *)

DATA_RTU (STRUCT from type DWORD)


DATA_RTU
DATA

DATA

COM_MOD_MAST

ERR_LIM_RTU ( BOOL )
ERR_LIM_RTU
JOB_START_RTU/JOB_END_RTU
.
I_RTU ( INT )
I_RTU

ABB

(JOB).

PLC

32

AC500/Issue: 04.2012

4.4.2
PM583-ETH COM1
19200
8

Modbus
1

COM2

Modbus

47
(JOB)

MODBUS_RTU_AC500

JOB_START_RTU=1

ABB

ENABLE_RTU= TRUE RESET_RTU= FALSE


JOB_END_RTU= 4
1(JOB1)

PLC

33

4(JOB4)

AC500/Issue: 04.2012

ABB

PLC

34

AC500/Issue: 04.2012

4.4.3

MODBUS_RTU_AC500

PM583-ETH COM1
19200
2
3

Modbus
8
1
2
MODBUS_RTU_AC500
4.3.2

ABB

PLC

2 3
(JOB)
3
4.3.3

35

AC500/Issue: 04.2012

ABB

PLC

36

AC500/Issue: 04.2012

4.5 AC500 ACS_Drives


4.5.1
AC500 ACS_Drives
RTU
Modbus TCP

Modbus
PROFIBUS-DP

ACS_DRIVES_BASIC_AC500_V13.lib
ACS_DRIVES_COM_MBRTU_AC500_V13.lib Modbus RTU
ACS_DRIVES_COM_MBTCP_AC500_V13.lib Modbus TCP
ACS_DRIVES_COM_PB_AC500_V13.lib

PROFIBUS-DP

ACS_DRIVES_CTRL_AC500_V13.lib

AC500
Modbus RTU
ACS_DRIVES_BASIC_AC500_V13.lib
ACS_DRIVES_CTRL_AC500_V13.lib

ACS_DRIVES_COM_MBRTU_AC500_V13.lib
CoDeSys

4.5.2 ACS_DRIVES_BASIC_AC500_V13.lib

ABB

PLC

37

AC500/Issue: 04.2012

(DRIVE_REF, MOD_TOKEN)

DRIVE
ACS_DRIVES_COM_MBRTU_AC500_V13.lib

ABB

PLC

38

AC500/Issue: 04.2012

4.5.3 ACS_DRIVES_COM_MBRTU_AC500_V13.lib
Modbus RTU

ACS_DRIVE_COM_MB_RTU_ENH

ACS_DRIVE_COM_MB_RTU_ENH(

Modbus RTU

EN:= ,
COM:= ,

TRUE
Modbus

TIMEOUT:= ,
SLAVE:= ,

1=COM1
ms

Modbus

DRIVE_TYPE:= ,

: TYPE_ACS800:=1, TYPE_ACSM1:=2,
TYPE_ACS350:=3, TYPE_ACS355:=4,
TYPE_ACS550:=5, TYPE_ACS850:=6,
TYPE_ACS880:=7, TYPE_ACS310:=8,

ABB

PLC

39

AC500/Issue: 04.2012

TYPE_ACQ810:=9, TYPE_ACH550:=10
NVAR_READ:= ,

400001

15

15

FBD DATA OUT


NVAR_WRITE:= ,

400051
FBD DATA IN

WRITE_VALUE:= ,

400054

LINE:= ,

400065

1~3

COM_MB_RTU

DRIVE:= ,
DONE=> ,
ERR=> ,
ERNO=> ,
BUSY=> ,
ONL=> ,
READ_VALUE=> );;

ACS_DRIVE_COM_MB_RTU

400001

400015

1~3

ACS_DRIVE_COM_MB_RTU_ENH

4.5.4 ACS_DRIVES_CTRL_AC500_V13.lib

ABB

PLC

40

AC500/Issue: 04.2012

:
1)

ACS_ENG_IF_ABB_DRV_PROFILE

1.

(MCW) (

2.

1 (+/- 20000)

3.

2 (+/- 10000)

USE_MCW

1.

(MSW)

2.

1 (+/- 20000)

3.

2 (+/- 10000)

ACS_ENG_IF_ABB_DRV_PROFILE(
EN:= ,

TRUE

OFF1:= ,

FALSE

OFF2:= ,

FALSE

OFF3:= ,

FALSE

INHIBIT_OP:= ,
RAMP_OUT_ZERO:= ,

FALSE

RAMP_HOLD:= ,

FALSE

ABB

PLC

41

AC500/Issue: 04.2012

RAMP_IN_ZERO:= ,

FALSE

RESET:= ,
MCW_BIT8:= ,
MCW_BIT9:= ,
REMOTE_CMD:= ,

FALSE

SET_EXT_CTRL_LOC:= ,

MCW_BIT12:= ,
MCW_BIT13:= ,
MCW_BIT14:= ,
MCW_BIT15:= ,
USE_MCW:= ,
MCW:= ,
REF_VALUE1:= ,

REF_VALUE2:= ,

DRIVE:= ,

DRIVE_REF

DONE=> ,
ERR=> ,
ERNO=> ,
RDY_ON=> ,
RDY_RUN=> ,
RDY_REF=> ,
TRIPPED=> ,
OFF2_STATE=> ,

FALSE

OFF3_STATE=> ,

FALSE

SWITCH_ON_INHIBIT=> ,
ALARM=> ,
AT_SETPOINT=> ,
REMOTE=> ,
ABOVE_LIMIT=> ,
EXT_CTRL_LOC=> ,

EXT_RUN_ENABLE=> ,

ABB

PLC

42

AC500/Issue: 04.2012

MSW_BIT13=> ,
MSW_BIT14=> ,
MSW_BIT15=> ,
MSW=> ,
ACT_VALUE1=> ,

ACT_VALUE2=> ,

ACT_MCW=> );

2)

ACS_CTRL_ABB_DRV_PROFILE
/

1.

(MCW

2.
3.

2 (EXT2)

4.

1 (+/- 20000)

5.

2(+/- 10000)

1.

(MSW)

2.

1(+/- 20000)

3.

2(+/- 10000)

ACS_CTRL_ABB_DRV_PROFILE(
EN:=TRUE,

ABB

TRUE

PLC

43

AC500/Issue: 04.2012

START:= ,
EMCY_COAST:= ,
EMCY_STOP:= ,
COAST_STOP:= ,
RESET:= ,
EXT2_CTRL:= ,

SPEED_REF:= ,
REF_VALUE2:= ,

DRIVE:=TempDriver,

DRIVE_REF

DONE=> ,
ERR=> ,
ERNO=> ,
STOPPED=> ,
RUNNING=> ,
FAULT=> ,
WARN=> ,
EXT_RUN_ENABLE=> ,
LOCAL_CTRL=> ,
EXT_CTRL_LOC2=> ,

ACT_SPEED=> ,
ACT_VALUE2=> ,

MSW=> ,
ACT_MCW=>);

3)

ACS3xx

/
ACSM1

rpm

0.1Hz

1.

2.
3.

ABB

rpm

PLC

0.1Hz

44

AC500/Issue: 04.2012


1.
2.
3.

rpm

0.1Hz

ActVal1

ACS_CTRL_ABB_DRV_PROFILE
ACS_CTRL_ABB_DRV_PROFILE

4.5.5
COM_MB_RTU
DRIVE

Line

ABB

PLC

RTU

45

AC500/Issue: 04.2012

/
AC500 ModbusRTU
ABB

V1.0.0

2012-3(

/
)

Mark-Feng.Wang

AC500 CPU
ModbusRTU

ABB
10

100015
(86-10)58217788
(86-10)58217518
400 810 8885
E-Mail plc.service@cn.abb.com
http://www.abb.com.cn/plc

ABB

PLC

46

AC500/Issue: 04.2012