Program Example; Parameter Scaling; Bico Parameters; Fault - Siemens SINAMICS V20 Operating Instructions Manual

Hide thumbs Also See for SINAMICS V20:
Table of Contents

Advertisement

Program example

The program below gives an example of calculating the CRC for MODBUS RTU.
unsigned int crc_16 (unsigned char *buffer, unsigned int length)
{
unsigned int i, j, temp_bit, temp_int, crc;
crc = 0xFFFF;
for ( i = 0; i < length; i++ )
{
}
}

Parameter scaling

Due to the limits of the integer data in the MODBUS protocol, it is necessary to convert the
inverter parameters before transmitting them. This is done by scaling, so that a parameter,
which has a position after decimal point, is multiplied by a factor, to get rid of the fractional
part. The scaling factor is as defined in the above table.

BICO parameters

The updating of BICO parameters will also be done in the parameter processing in the
background. Because of the limitations of the register value, it is only possible to write a '0'
or a '1' to a BICO parameter. This will set BICO input to a static value of either '0' or '1'. The
previous connection to another parameter is lost. Reading the BICO parameter will return the
current value of the BICO output.
For example: MODBUS register number 40200. Writing a value 0 or 1 to that register will set
the BICO input P0731 statically to that value. Reading will return the BICO output, which is
stored in r0747.0.

Fault

The inverter displays the fault F72 when the following three conditions are met:
● The parameter P2014 (USS/MODBUS telegram off time) is not equal to 0.
● Process data has been received from the master since the inverter's start-up.
● The time between receipts of two consecutive process data telegrams exceeds the value
of P2014.
SINAMICS V20 Inverter
Operating Instructions, 09/2014, A5E34559884
temp_int = (unsigned char) *buffer++;
crc ^= temp_int;
for ( j = 0; j < 8; j++ )
{
temp_bit = crc & 0x0001;
crc >>= 1;
if ( temp_bit != 0 )
crc ^= 0xA001;
}
Communicating with the PLC
6.2 MODBUS communication
145

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents