Using The Read Parameters In The Program; Word-To-Integer Conversion For Variables With Negative Values - ABB ACS355 Application Manual

Machinery drive
Hide thumbs Also See for ACS355:
Table of Contents

Advertisement

22 Customization
The value of the NVAR_READ input is changed
accordingly. Because there are six parameters to be read
(plus one for the status word), NVAR_READ is changed
to 7 as instructed above. Once the program is back
online, the visualization changes to show the values of
the parameters read from the drive:

Using the read parameters in the program

The parameters read from the drive appear as variables
named awACT_PARAMETERS[1...9] in CoDeSys. The first
index in the array corresponds to the status word, and
indexes 2...9 correspond to the parameters mapped to be
read. For example, if parameter 53.13 is set to 110 (01.10
DRIVE TEMP), awACT_PARAMETERS[5] gets the value of
the parameter.

Word-to-integer conversion for variables with negative values

The data type (word) of the READ_VALUE output values in
the ACS3XX_COM_MOD_RTU function block permits only
non-negative values, but it is possible to use a word-to-
integer conversion to enable also negative values. In the
following example, awACT_PARAMETERS[7] is converted to a new variable, iTorque
which represents the torque and direction of motor rotation.
Declare the iTorque variable as integer:
iTorque: INT;
The value is then converted into an integer as shown below. The negative value
represents reverse direction in this example.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ac500

Table of Contents