Schneider Electric VW3 A3 303 user manual Example of positive response, Mei

Page 33

8. Modbus protocol

Negative response specifically related to the identification function:

Slave no.

2B + 80

Type of MEI

Error code

 

CRC16

 

 

 

 

AB

0E

00 to 02

Lo

 

Hi

 

 

 

 

 

 

 

1 byte

1 byte

1 byte

1 byte

1 byte

 

1 byte

Error code:

16#00 =

No error

 

 

 

 

16#01 = The "Request code" (16#2B), the "Type of MEI" (16#0E) or the "ReadDeviceId" (16#01) contained in the request is incorrect.

16#02 = The "Object Id" (16#00) contained in the request is incorrect.

Example of positive response:

Address = 2

Manufacturer name = “Telemecanique”

Device name = “ATV71HU15M3”

Device version = “0201”

Device name = “MACHINE 4”

Request:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

Request code

Type of MEI

ReadDeviceld

Object Id

 

CRC

 

CRC

 

 

 

Lo

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

2B

0E

 

01

 

 

00

 

 

34

 

77

 

 

Response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

 

Response

 

Type of

ReadDeviceld

Degree of

 

 

No. of additional

Next object Id

Object no.

 

 

code

 

MEI

conformity

 

 

 

frames

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

2B

 

0E

 

01

 

02

 

 

 

00

00

04

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-------

-------

-----

Id of

Length of

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Value of object no. 1

 

 

 

 

 

 

 

 

 

 

-----

-----

object no.

object no. 1

’T’

 

’e’

 

’l’

 

 

’e’

 

’m’

 

 

 

’e’

 

’c’

 

’a’

 

’n’

 

 

’i’

 

’q’

 

’u’

 

’e’

-----

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00

 

0D

54

 

 

 

65

 

6C

 

 

65

 

6D

 

 

 

65

 

 

 

63

 

 

 

61

 

6E

 

69

 

71

 

75

 

65

 

----

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Id of

 

Length of

 

 

 

 

 

 

 

 

 

 

 

 

 

Value of object no. 2

 

 

 

 

 

 

 

 

 

 

 

 

----

 

 

 

 

 

 

 

----

 

 

object no.

object no. 2

’A’

 

 

 

’T’

 

 

’V’

 

 

’7’

 

’1’

 

’H’

 

 

’U’

 

 

 

’1’

 

 

 

’5’

 

’M’

 

 

’3’

----

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

01

 

0B

41

 

 

54

 

 

56

 

 

37

 

31

 

48

 

 

 

55

 

 

 

31

 

 

35

 

4D

 

 

33

 

 

 

 

 

 

 

 

 

----

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Id of

 

Length of

Value of object no. 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

----

 

 

object no.

 

object no. 3

’0’

 

 

 

’2’

 

 

’0’

 

 

’1’

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

04

30

 

 

32

 

 

30

 

 

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

----

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Id of

 

Length of

 

 

 

 

 

 

 

 

Value of object no. 4

 

 

 

 

 

 

 

 

 

 

CRC

CRC

 

 

 

 

 

 

 

 

----

 

 

object no.

 

object no. 4

’M’

 

 

 

’A’

 

 

’C’

 

 

’H’

 

’I’

 

’N’

 

 

’E’

 

 

’ ’

 

 

 

’4’

 

Lo

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

06

 

09

4D

 

 

41

 

 

43

 

 

48

 

49

 

4E

 

 

45

 

 

 

20

 

 

34

 

6F

 

50

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

33

Image 33
Contents Altivar Contents Electric shock will result in death or serious injury Before you beginDocumentation structure Installation ManualProgramming Manual Communication Parameters ManualIntroduction PresentationNotation Installing the card in the drive Hardware setupReceipt Hardware descriptionSwitch coding Choosing polarizationCoding the address 1234 AddressConnecting to the bus Wiring recommendationsModbus RS485 standard Connection via RJ45 wiring system Connection accessoriesConnection cables Type of master Master interface Description Catalog number Connection cables for the masterTWD XCA RJ030 TSX SCP CMDescription Catalog Number Subscriber socket Connection via junction boxesRS485 double shielded twisted pair CablesTSX P ACC TSX CSA500Communication parameters ConfigurationControl via Modbus in I/O profile Control CommandControl via Modbus or the terminals in I/O profile Parameter Value CommentControl via Modbus or the terminals in Drivecom profile Control via Modbus in Drivecom profileConfiguration Communication scanner Example of configuration via the graphic display terminalRDY NET COM. Scanner InputCOM. Fault Management Communication faultsMonitored parameters CONFIG. COMM. MAPFormat Format Range Terminal displayChecking the address DiagnosticsLEDs Green RUN Red ERR Meaning Corrective actionCommunication MAP RUN NETCOM. Scanner Input MAP COM Scan Output MAP CMD. Word ImageInput variable Scanner parameter Output variable Scanner parameterCOM Scan Output MAP Card fault Communication faultModbus protocol PrincipleSlave Slave j Slave k Ascii mode RTU modeModes Slave address Function code DataModbus functions available Read Holding/Input Registers 3/4Code Modbus name Description Broadcast Size of data Write Single Register Diagnostics Write Multiple Registers 16 = 16#10 Get Comm Event Counter 11 = 16#0BRead/Write Multiple Registers 23 = 16#17 Machine Read Device Identification 43 = 16#2BMEI Example of positive responseOutput variables Logic address Default assignment Input variables Logic address Default assignmentCode Modbus name Description Size of data Input variable address Logic address Default value Parameter Logic ReadParameter Logic Parameter assigned Output controlInput monitoring Value Parameter assignedCode Error code Exception responsesResponse Logic address Parameter Value Read non-existent or protected parametersRS485 standard AppendixMaster Modbus 2-wire standard schematicModbus 4-wire standard schematic Uni-Telway schematic Type of trunk cable Cable with 1 shielded twisted pair Wire Jbus schematicCreating a Modbus bus using non-standard equipment Different scenariosRecommendations Example Calculating the polarizationCard connector pinout RS485 schematic for the cardContact no. Signal SUB-DAtv71ModbusJbusENV1 2005-05