Schneider Electric VW3A3310d user manual Read/Write Multiple Registers 23 = 16#17 function

Page 38

11. Modbus TCP server

11. 8. “Read/Write Multiple Registers” (23 = 16#17) function

The “Read/Write Multiple Registers” service is reserved for setting up the IO Scanning service (see “IO Scanning” section).

Request format:

 

 

 

 

 

 

Byte

Meaning

With the VW3A3310d Ethernet card

0

Function Code = 16#17

16#17

1

Read Reference Address Hi

0 (not handled)

2

Read Reference Address Lo

0 (not handled)

3

Quantity to Read Hi (0)

0

 

4

Quantity to Read Lo (1 - 125)

32

 

5

Write Reference Address Hi

0 (not handled)

6

Write Reference Address Lo

0 (not handled)

7

Quantity to Write Hi (0)

0

 

8

Quantity to Write Lo (1 - 100)

32

 

9

Byte Count (2 × Quantity to Write)

64

 

10

Write Data 01 (Hi)

Value of 1st IO Scanner output register

11

Write Data 01 (Lo)

(by default: value of the control word (CMd))

……………………

……………………

72

Write Data 32 (Hi)

PKW output: PKE (Hi)

73

Write Data 32 (Lo)

PKW output: PKE (Lo)

Response format:

 

 

 

 

 

 

Byte

Meaning

With the VW3A3310d Ethernet card

0

Function Code = 16#17

16#17

1

Byte Count (2 × Quantity to Write)

64

 

2

Read Data 01 (Hi)

Value of 1st IO Scanner input register

 

 

(by default: value of the status word (EtA))

3

Read Data 01 (Lo)

……………………

……………………

64

Read Data 32 (Hi)

PKW input: PKE (Hi)

65

Read Data 32 (Lo)

PKW input: PKE (Lo)

Exception response format:

 

 

 

 

 

Byte

Meaning

With the VW3A3310d Ethernet card

0

Function Code = 16#97

 

 

 

 

01

(Illegal Function)

1

Exception Code

02

(Illegal Data Address)

03

(Illegal Data Value)

 

 

 

 

04

(Illegal Response Length)

 

 

 

 

38

Image 38
Contents Altivar 61 Page Table of contents Table of contents Important Information Please NoteBefore you begin Hazard of Electric SHOCK, EXPLOSION, or ARC FlashProgramming Manual Installation ManualDocumentation structure ATV61Notation IntroductionPresentation Receipt Hardware setupInstalling the card in the drive Hardware descriptionPin Signal Connecting to the Ethernet networkCard RJ45 connector pinout Example of connection to an Ethernet networkEthernet network connection elements Ethernet menu Access to Ethernet menu via graphic display terminalAccess to Ethernet menu via the integrated display terminal ENTEthernet menu parameters IPP4 Code Description IPPIPP1 0.0.0 0 0 0 IPP2 IPP3 IPFFdrt FdrAFdrS FdrEConfiguration List of functions to be configuredAssigning IP addresses Configuring IP addressesPower-up Initialization Static Addressing DynamicEntering IP addresses in the terminal Configuring BootpConfiguring FDR IP card IPC1 IPC2 IPC3 IPC4 IP Mask IPM1 IPM2 IPM3 IPM4Configuring IO Scanning Reserving controlControl via Ethernet or the terminals in I/O profile Configuring the controlControl via Ethernet in I/O profile Parameter Value CommentControl via Ethernet in CiA402 Drivecom profile Control via Ethernet or the terminals in CiA402 profileProfile Separate Network management Configuring communication interruption managementCommunication monitoring CommunicationDrive response COM. Fault ManagementExternal Fault RDY NETConfiguring monitored parameters Format Range Terminal displayColor/ state Description DiagnosticsSignalling LEDs Integrated display Available informationMonitoring the control Terminal Workshop Web serverExtended communication interruption Troubleshooting communication interruptionsEthernet communication interruption type CodeTroubleshooting the card Client Service Number of connections Software setupList of services supported TCP connectionsModbus TCP frames Unit ID Modbus TCP server Accessible parametersModbus TCP server Drive Modbus serversIPC1.IPC2.IPC3.IPC4 Address Size Description Access Possible values, commentsEthernet card parameters IPM1.IPM2.IPM3.IPM4IPP1.IPP2.IPP3.IPP4 IPF1.IPF2.IPF3.IPF4FDR autosave Code Modbus name Description Size of data Decimal List of Modbus functions supported Read Holding Registers 3 function Byte MeaningWrite Single Register 6 function Write Multiple Registers 16 = 16#10 function Read/Write Multiple Registers 23 = 16#17 function 16#17Read Device Identification 43 = 16#2B function Bytes Meaning With the VW3A3310d Ethernet cardIO Scanning service Periodic variablesAddress Description Default value Address tableFDR service Local configuration First use Downloaded configurationDrive parameters configuration IP assignment Save DownloadingDownload the IP addresses Save the drive configuration parameters in the FDR serverReplacing a drive Check that the system is operationalPeriodic saving Other commandsConfiguration file LimitationsStandard web server Home menu Monitoring menu Diagnostics menuSetup menu Security submenu Documentation menu Web server functionsApplets Access to the web server Username and passwordMonitoring menu Web server user interfaceHome menu Altivar Viewer Data Viewer Altivar Chart Diagnostics menuSetup menu Ethernet StatisticsHttp password and Data write password pages FDR Agent Lcfg = No nOError Code Local ConfigFile Error Restore CounterIO Scanner Enabling IO Scanning Assigning the IO Scanning periodic variablesTime out MasterMail Important NoticeDocumentation menu Access FTP serverFTP functionality Comment FunctionsFile system DIRFile management Downloading from the web serverPrinciple File name 32 characters maxWeb server Type File name Standard web server resourcesType File name Size Complete URL Bytes Complete URL BytesTree structure Snmp agentPresentation ATV Objects Description Access Default valueObjects handled Setup using PL7 Defining the hardware configurationBootp configuration Multi Configuring Modbus messagingModbus Configuring periodic variables PLC Configuring the Dhcp address server FDR Setup using Concept Setup using ProWORX NxT Hardware configuration Traffic Cop Network configurationTCP/IP configuration O Scanner configuration Page 30072-452-37 2008-02