DrvControlModbusEng (FB)

FUNCTION_BLOCK DrvControlModbusEng EXTENDS AbbLConCA

Function Block DrvControlModbusEng is used as an engineering interface for ACS Drives with ABB Drives profile.

Inputs RefValue1, RefValue2 and the generated Control Word are written to the DriveData variable which transfers these values to a communication function Block, e.g. DrvModbusRtu / DrvModbusTcp. Communication function block writes them to the drive. In the same way ActValue1, ActValue2 and the Status Word are transferred from the communication Function Block to the DrvControlModbusEng block where they are written to the outputs.

As long as Enable = FALSE no values are read nor written to the DriveData variable.

The Control Word can be generated in 2 ways. First way is to set the single bits of the ControlWord separately at the inputs Off1, Off2 … ControlWordB15 while the input UseControlWord = FALSE. Second way is to set the input UseControlWord = TRUE and write the ControlWord as a whole word directly to the input ControlWord. The generated ControlWord is written to the DriveData variable and for diagnosis purpose also available at output UsedControlWord

Preconditions

The data transfer to the ACS drive is realized via the InOut variable DriveData, which must be connected to any of the following Modbus communication function blocks DrvModbusRtu or DrvModbusTcp

The input and output names of the bits of the ControlWord and StatusWord reflect the functions used with ABB Drive Profile. So the block should be used with ABB Drives profile setting in the drive.

The function block does not execute any functionality expect data transfer to and from the DriveData variable. So there is no special drive parameter setting necessary to use this block.

The programmer using this block should have a detailed understanding of how to set the ControlWord according to the StatusWord and the description of the used drive.

For standard speed & torque control application it is recommended to the use the DrvControlModbusACS instead.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

Enable

BOOL

FALSE

A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.

AbbLConCA

Output

Busy

BOOL

FALSE

Operation is running (while output Error is FALSE)

AbbLConCA

Error

BOOL

FALSE

Operation is stopped with error (while output Busy is FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.

AbbLConCA

Input

Off1

BOOL

FALSE

2: Low active; stop with normal ramp

Off2

BOOL

FALSE

3: Low active; emergency stop, no torque

Off3

BOOL

FALSE

4: Low active; emergency stop, special ramp

InhibitOp

BOOL

FALSE

5: General operation enable

RampOutZero

BOOL

FALSE

6: Enable ramp out

RampHold

BOOL

FALSE

7: Activate ramp out

RampInZero

BOOL

FALSE

8: Low active; enable reference of ramp out

Reset

BOOL

FALSE

9: Rising edge will reset all active faults

ControlWordB8

BOOL

FALSE

10: Bit 8 on Control Word - according to user specific drive configuration.

ControlWordB9

BOOL

FALSE

11: Bit 9 on Control Word - according to user specific drive configuration.

RemoteCmd

BOOL

FALSE

12: High active; remote control active

ExtCtrlLoc

BOOL

FALSE

13: High active; select Ext2 as external control location - FALSE = Ext1

ControlWordB12

BOOL

FALSE

14: Bit 12 on Control Word - according to user specific drive configuration.

ControlWordB13

BOOL

FALSE

15: Bit 13 on Control Word - according to user specific drive configuration.

ControlWordB14

BOOL

FALSE

16: Bit 14 on Control Word - according to user specific drive configuration.

ControlWordB15

BOOL

FALSE

17: Bit 15 on Control Word - according to user specific drive configuration.

UseControlWord

BOOL

FALSE

18: Use input “ControlWord” instead of using single bit inputs for main control word

ControlWord

WORD

0

19: Main control word - only be used if UseControlWord input is set to TRUE

RefValue1

INT

0

20: Speed reference value as 16bit integer: -20000 .. 20000 will be send to drive as reference value1.

Valid range: for ACS880 and ACX5x0 limited to -20000 .. +20000. See drive manual for specific scaling parameter, e.g. ACS580= Par.30.12, ACS880= Par30.12

RefValue2

INT

0

21: Reference value 2 as 16bit integer to drive -10000..+10000 will be send to drive as reference value2.

Valid range: for ACS880 and ACX5x0 limited to -10000 .. +10000 See drive manual for specific scaling parameter, e.g. ACS580= Par.30.20, ACS880= Par30.20

Inout

DriveData

DrvDataType

22: Drive reference variable to connect to all function blocks of this drive

Output

NoConToDrive

BOOL

FALSE

3: No connection to drive can be established, StatusWord = 0

ReadyOn

BOOL

FALSE

4: Ready to switch on

ReadyRun

BOOL

FALSE

5: Ready to start

ReadyRef

BOOL

FALSE

6: Running

Tripped

BOOL

FALSE

7: Drive is tripped

Off2State

BOOL

FALSE

8: Off2 not active

Off3State

BOOL

FALSE

9: Off3 not active

SwitchOnInhibit

BOOL

FALSE

10: Switch on inhibited

Alarm

BOOL

FALSE

11: Warning or tripped

AtSetpoint

BOOL

FALSE

12: Actual value in tolerance band

Remote

BOOL

FALSE

13: Remote control active

AboveLimit

BOOL

FALSE

14: Actual value above limit - Par.32.03

ExtCtrlLocAct

BOOL

FALSE

15: Ext2 control location selected FALSE = Ext1

ExtRunEnable

BOOL

FALSE

16: External Run Enable signal received, must be set to run. Source is chosen via 20.12 (ACS880 / ACS580)

StatusWordB13

BOOL

FALSE

17: Bit 13 on Status Word - according to user specific drive configuration.

StatusWordB14

BOOL

FALSE

18: Bit 14 on Status Word - according to user specific drive configuration

StatusWordB15

BOOL

FALSE

19: Bit 15 on Status Word - according to user specific drive configuration

ActStatusWord

WORD

0

20: Actual StatusWord read from drive

ActValue1

INT

0

21: Actual value1 read from drive. For scaling see drive documentaion.

Mostly -20000 .. +20000 e.g.: Ref1min/ Ref1max Par30.11/12 for ACS5x0 or ACS880

ActValue2

INT

0

22: Actual value 2 read from drive

UsedControlWord

WORD

0

23: Used ControlWord, built in function block