background image

~ 13 ~ 

PEF-

321АВР   

     

 

 

             

                           

NOVATEK-ELECTRO

 

6.3 Work with interface RS (EIA/TIA)-485 upon the MODBUS protocol 
6.3.1 General

  

321

АВР  allows  to  perform  data  exchange  with  external  devices  via  the  serial  RS  (EIA/TIA)-485  interface 

using the MODBUS protocol with a limited set of commands (the list of supported functions is shown in Table 12. 

 

Table 12

 - List of supported functions 

 

Function (hex) 

Purpose 

Note 

0x03 

Reading of one or several registers 

Maximum 50 

0x06 

Writing of one value to the register 

---- 

 

When designing a network, the principle of the master-slave arrangement is used, where device 321

АВР acts 

as  a  slave.  A  network  can  have  only  one  master  unit  and  several  slave  units.  The  master  unit  is  a  personal 
computer or a programmable logic controller. With this setting up, the initiator of the exchange cycles can only be 
the master unit. 

Requests  of  the  master  unit  are  individual  (addressed  to  a  specific  device).  The  321

АВР  device  performs 

transmission, responding to individual requests of the master unit. 

If errors are detected in receiving requests, or if it is impossible to execute the received command, 321

АВР 

generates an error message as a response (Table 13). 

In 321ABP, all values with a dot are converted to integers. Therefore, when processing data, it is necessary to 

apply additional mathematical operations. 

When reading a value with a dot (for example, 

1.000

) 321

АВР will return an integer value of 

1000,

 in order to 

convert the read value to the correct format, it is necessary to divide by. 

Before writing a value with a dot (for example, 

1.000

) you must reduce it to an integer value by multiplying the 

value by 1000, then write the value to 321

АВР. 

The coefficient of reduction to an integer value is determined by a number of decimal places (1,0 

– 10; 1,00 – 

100; 1,000 - 1000). 

 

Table 13

 - Error codes for the MODBUS protocol 

 

Error 

code 

Name 

Error description 

01 

ILLEGAL FUNCTION 

The accepted function code cannot be processed 

02 

ILLEGAL DATA ADDRESS 

The data address specified in the request is not available 

03 

ILLEGAL DATA VALUE 

The value contained in the query data field is not a valid value 

04 

S

ERВER DEVICE FAILURE 

An  unrecoverable  error  occurred  while  the  slave  device  was 
attempting to perform the requested action 

05 

ACKNOWLEDGE 

The  slave  device  has  accepted  the  request  and  is  processing  it, 
but this is time consuming 

06 

S

ERВER DEVICE BUСY 

The  slave  device  is  busy  processing  the  command.  The  master 
unit should retry the message later when the slave is free 

07 

NEGATIVE_ACKNOWLEDGE 

The slave device cannot execute the software function specified in 
the request 

08 

MEMORY PARITY ERROR 

When  reading  the extended memory,  the  slave  device  detected a 
parity error 

 

6.3.2 Message Formats 

The  exchange  protocol  has  clearly  defined  message  formats.  Compliance  with  the  formats  ensures  the 

correctness and stability of the network. 

The data in the message is transmitted in high byte forward. 

 

6.3.2.1 Byte format 

321

АВР is  configured  to work  with  one  of  two  data  byte  formats:  with  parity  control  (Figure  7)  and without 

parity control (Figure 8). In the mode of operation with parity control, the type of control is also indicated: parity 
(Even) or oddness (Odd). The transmission of data bits is performed by the least significant bits forward. 

By default (during manufacture), the device is configured to operate without parity and with two stop bits. 

 

 

 

Fig. 7

 

– Byte format with a parity control 

 

 

 

Fig. 8

 - Byte format without parity control (2 stop bits) 

 

Summary of Contents for PEF-321ABP

Page 1: ...m on the development and production complies with requirements ISO 9001 2015 Dear customer Company NOVATEK ELECTRO LTD thanks you for purchasing our products You will be able to use properly the produ...

Page 2: ...AL ELEMENTS OF THE PRODUCT During operation and maintenance the regulatory document requirements must be met namely Regulations for Operation of Consumer Electrical Installations Safety Rules for Oper...

Page 3: ...vervoltage category III Rated insulation voltage V 450 Rated impulse withstand voltage kV 4 0 Wire cross section for connecting to terminals mm2 0 5 2 Tightening torque of terminal screws N m 0 4 Tabl...

Page 4: ...frame self extinguishing plastic No harmful substances in amount that exceeds permissible exposure limits Table 3 Characteristics of output contacts Used terminals Max current at U 250 V A Number of...

Page 5: ...to power the device or connect the generator 7 8 9 10 11 not involved 31 the second phase of input 2 to power the device or connect the generator 12 13 the state of voltage at input 1 32 the third pha...

Page 6: ...ECTIONS MUST BE PERFORMED WITH THE DEVICE BEING DEENERGIZED An error in installation work may result in damage of the device and instruments connected to it To ensure reliability of electrical connect...

Page 7: ...f operation 321 supports 6 operating modes two equivalent three phase inputs two three phase inputs with priority input 1 two three phase inputs with priority input 2 three phase input 1 and a three p...

Page 8: ...input 1 by contactor K1 and counts the transition time to the secondary input table 5 3 After completion of the 321 time countdown device 321 closes terminals 20 21 sends a signal to start the generat...

Page 9: ...d configure other menu items In order to exit the menu press and hold the OK button for 3 s If no button is pressed within 30 s the menu will exit automatically Table 5 Menu Menu Value Name Descriptio...

Page 10: ...SCII 1 RTU MODBUS modes 134 Parity check parity check is off even parity check odd parity check 135 Number of stop bits or 136 Transfer rate transfer rate 2400 baud transfer rate 4800 baud transfer ra...

Page 11: ...d order dot is lighting 13 14 Phase voltage of phase 3 Low order dot is lighting 15 16 Linear voltage of phases 1 2 High order dot is flashing 17 18 Linear voltage of phases 2 3 Mid order dot is flash...

Page 12: ...s not lighting no voltage 400 AC 16 17 Optotransistor Availability of the battery Is not lighting the battery is disconnected Is lighting the battery is connected 280 AC 400 DC 18 19 Optotransistor Th...

Page 13: ...ite the value to 321 The coefficient of reduction to an integer value is determined by a number of decimal places 1 0 10 1 00 100 1 000 1000 Table 13 Error codes for the MODBUS protocol Error code Nam...

Page 14: ...s Addresses of the slave devices are in the range from 1 to 247 Figure 10 shows the ASCII frame format 1 byte Address Function code Data CRC checksum CRLF 2 bytes 2 bytes 2 bytes Up to 504 bytes 2 byt...

Page 15: ...tion 0x06 provides writing to one 321ABP register The master s request contains the address of the register and data for entering The answer of the device coincides with the request of the master unit...

Page 16: ...ored at the temperature from minus 45 to 60 C and relative humidity of no more than 80 10 ACCEPTANCE CERTIFICATE PEF 321 has been manufactured and accepted in accordance with the requirements of valid...

Reviews: