Schneider Electric VW3 A3 303 user manual Get Comm Event Counter 11 = 16#0B

Page 30

8. Modbus protocol

8. 7. Get Comm Event Counter (11 = 16#0B)

Question:

 

 

 

 

 

Slave no.

0B

CRC16

1 byte

1 byte

2 bytes

Response:

 

 

Slave no.

1 byte

0B

1 byte

0000

2 bytes

Value of counter

Hi Lo

2 bytes

 

CRC16

Lo

 

Hi

 

 

2 bytes

8. 8. Write Multiple Registers (16 = 16#10)

Request:

Slave no.

10

 

No. of first word

Number of words

Number of bytes

 

Value of first word

 

 

 

 

 

Hi

 

Lo

Hi

 

Lo

 

 

 

Hi

 

Lo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

1 byte

 

 

2 bytes

2 bytes

 

 

1 byte

 

 

2 bytes

 

 

Response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

 

10

 

 

 

No. of first word

 

 

Number of words

 

 

CRC16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

 

Lo

 

 

Hi

Lo

 

Lo

 

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

1 byte

 

 

 

2 bytes

 

 

 

2 bytes

 

2 bytes

 

 

-------

CRC16

Lo

Hi

 

 

2 bytes

Example: Write values 20 and 30 to logic address words 9001 and 9002 on slave 2 (acceleration time = 20 s and deceleration time = 30 s)

Request:

Slave no.

 

Request

 

No. of first word

Number of

Number of

Value of first word

 

Value of second

 

CRC16

 

 

code

 

 

 

 

 

 

words

bytes

 

 

 

 

 

word

 

 

 

 

 

 

 

 

 

Hi

 

Lo

Hi

 

Lo

 

 

Hi

 

Lo

 

Hi

 

Lo

 

Lo

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

10

 

23

 

29

 

00

 

02

 

04

 

00

14

 

00

 

1E

73

 

A4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

 

 

Response code

 

 

No. of first word

 

Number of words

 

 

CRC16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

 

Lo

 

Hi

 

Lo

 

 

Lo

 

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

 

 

10

 

 

 

 

23

 

29

 

00

 

02

 

 

9B

 

 

B7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

30

Image 30
Contents Altivar Contents Before you begin Electric shock will result in death or serious injuryProgramming Manual Installation ManualDocumentation structure Communication Parameters ManualIntroduction PresentationNotation Receipt Hardware setupInstalling the card in the drive Hardware descriptionSwitch coding Choosing polarizationCoding the address Address 1234Connecting to the bus Wiring recommendationsModbus RS485 standard Connection via RJ45 wiring system Connection accessoriesConnection cables TWD XCA RJ030 Connection cables for the masterType of master Master interface Description Catalog number TSX SCP CMRS485 double shielded twisted pair Connection via junction boxesDescription Catalog Number Subscriber socket CablesTSX CSA500 TSX P ACCConfiguration Communication parametersControl via Modbus or the terminals in I/O profile Control CommandControl via Modbus in I/O profile Parameter Value CommentControl via Modbus in Drivecom profile Control via Modbus or the terminals in Drivecom profileConfiguration RDY NET Example of configuration via the graphic display terminalCommunication scanner COM. Scanner InputCommunication faults COM. Fault ManagementFormat CONFIG. COMM. MAPMonitored parameters Format Range Terminal displayLEDs DiagnosticsChecking the address Green RUN Red ERR Meaning Corrective actionCOM. Scanner Input MAP RUN NETCommunication MAP COM Scan Output MAP CMD. Word ImageInput variable Scanner parameter Output variable Scanner parameterCOM Scan Output MAP Communication fault Card faultModbus protocol PrincipleSlave Slave j Slave k Modes RTU modeAscii mode Slave address Function code DataModbus functions available Read Holding/Input Registers 3/4Code Modbus name Description Broadcast Size of data Write Single Register Diagnostics Get Comm Event Counter 11 = 16#0B Write Multiple Registers 16 = 16#10Read/Write Multiple Registers 23 = 16#17 Read Device Identification 43 = 16#2B MachineExample of positive response MEIOutput 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 Input monitoring Output controlParameter assigned Value Parameter assignedCode Error code Exception responsesResponse Read non-existent or protected parameters Logic address Parameter ValueAppendix RS485 standardModbus 2-wire standard schematic MasterModbus 4-wire standard schematic Uni-Telway schematic Wire Jbus schematic Type of trunk cable Cable with 1 shielded twisted pairCreating a Modbus bus using non-standard equipment Different scenariosRecommendations Calculating the polarization ExampleContact no. Signal RS485 schematic for the cardCard connector pinout SUB-DAtv71ModbusJbusENV1 2005-05