Schneider Electric Altivar 212 manual Write multiple registers, Function 16 = 16#10, quantity =1

Page 37

Modbus services

Write multiple registers (16)

Function 16 = 16#10, quantity =1

This function code is used to write a block of contiguous registers (1 to approx. 120 registers). Read only parameters can't be written.

Request:

Slave no.

Function

Starting

Quantity of register

Byte count

First register value

-------

 

code

address

 

 

 

 

 

 

 

10

 

 

00

01

02 (fixed)

 

 

 

 

 

 

(fixed)

(fixed)

 

 

 

 

 

 

 

 

 

 

 

1 byte

1 byte

2 bytes

2 bytes

1 byte

2 bytes

CRC16

2 bytes

Response:

Slave no.

Function code

Starting address

Quantity of register

CRC16

 

10

 

 

00 (fixed)

01 (fixed)

 

 

1 byte

1 byte

2 bytes

2 bytes

2 bytes

Error response:

Slave no.

Function code

Exception code

CRC16

 

 

 

90

 

 

 

1 byte

1 byte

1 byte

2 bytes

Refer to "Error response", page 41.

Example: Write value 60Hz in the parameter [Frequency reference from serial comm.] (FA01) in Altivar 212 slave 1.

Request:

01

10

FA 01

00 01

02

17 70

F3 9A

Response:

01

10

FA 01

00 01

60 D1

S1A53844 01/2011

37

Image 37
Contents Altivar S1A53844 01/2011 Table of Contents Table of Contents Important Information Safety InformationAt a Glance About the BookHazard of Electric SHOCK, Explosion or ARC Flash S1A53844 01/2011 Introduction Introduction Whats in this Chapter? Hardware setupTopic RJ45 Pin out of the Open Style Modbus connectorCross section Tightening torquePin out of the RJ45 Modbus connector Connection via Open Style wiring systemPin Signal Open Style ReferenceConnection accessories Connection via RJ45 wiring systemConnecting cables RJ45 ReferenceProtection Against Interference PTC resistor value F646 Description of terminalsGND Hardware setup Configuration Access to the parameters Configuration of the communication parametersParameters Modbus Adjustment range Default Valid Address AfterParameters Modbus Setting Configuration of the control sourceControl by the Modbus network CommunicationControl by the terminals, monitoring by the Modbus network Setting Default ValidParameters Parameters Modbus Setting Default Valid Com channel choice F807 Communication Menu COM submenu Parameters Modbus Setting Default Valid AddressLI R selection F112 LI R selectionRemote spd ref 2 F207 Parameters LocationFrequency source VIA VIACommands CMOd Complete control diagramConfiguration Configuration of the indirect blocksConfiguration of the communication interruption Parameter Modbus Setting Default Valid Address Configure the drive behaviourCommunication detected fault 16#851 2129Configuration Modbus services Principle of the Modbus protocol RTU modeSlave Slave j Slave k Slave address Function code DataRead one word Modbus functions availableFunction 3, quantity = Function 3, quantity = 1 Read indirect blockStatus info Read indirect block of 2 parameters Write Single Register Function 16 = 16#10, quantity =1 Write multiple registersWrite indirect block Command word Frequency SetpointSpeed Setpoint Request 6C 7E Response Read Device Identification 43/14 Exception code Error responseModbus services Parameter list Setting of Max frequency FH Auto ramp AUI Disabled ManualReferring to the Altivar 212 programming manual GeneralList of control parameters Commands from serial communicationSetpoints from serial communication Outputs control from serial communicationStatus List of monitoring parametersFrequency and speed Current and torqueMaintenance Power and energyTrip and alarm codes ValuesCommand word FA00 CommandsBit Specifications Remarks Energy reset bit Command word 2 FA20Examples Over-current stall level change bitFrequency setpoint FA01 SetpointsSpeed setpoint FA13 Status word FE0I Fd01 StatusSetpoint mode status FE46 Command mode status FE45Status word 2 FE42 Fd42 Status word 3 FE49 Fd49Alarm code FC91 Trip and alarm codesAlarm of run time FE79 Code Value Description Hexadecimal number Decimal number Digital inputs status Fd06, FE06 Monitoring and control of I/O from communicationDigital outputs status Fd07, FE07 Bit Terminal name Function parameter titleAnalog outputs command FA51 Digital outputs command FA50Damper opening command Analog inputs values FE35, FE36F580 = 3 Identification Model Voltage Power Rating Code FB05 Class FB72bit8Drive model code F805 ATV212WU15N4C S1A53844 01/2011 Appendix Schematic diagram Modbus 2-wire standard schematicRS485 standard Migration For example Migration ATV21 ATV212Commissioning ATV212Modbus manualENS1A5384401 S1A53844 01/2011