DrvControlModbusDCS (FB)
FUNCTION_BLOCK DrvControlModbusDCS
This function block can be used to control DCS drives with ABB Drives profile using Modbus communication block.
StatusWord(Sw) is read from drive through Modbus communication block using inout variable DriveData.
Controlword(Cw) will be build by the function block according to the ABB drives profile state machine. ControlWord will be send via inout DriveData and the used communication block to the drive
Function block provides standard start/stop signals to control the drive and standard diagnosis signals are read from the drive. .. NOTE:: The Function Block is must be used for DCS drives using ABB drive profile for Modbus protocol only. The data transfer to the DCS drive is realized via the IN_OUT variable DriveData, which must be connected to DrvModbusTcp or DrvModbusRtu function blocks.
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnableBOOLFALSE
1: 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.
SwitchOnBOOLFALSE
2: Switch On, TRUE = Start; FALSE = stop along currently active stop ramp - No rising edge needed to restart if AutoStart = TRUE
RunBOOLFALSE
3: Start normal operation. Bit 3 on Control Word. If RUN = FALSE drive stops, Stop mode depends on parametrization of the drive - no rising edge needed
StopEmcyCoastBOOLTRUE
4: Low active, emergency coast stop to drive: FALSE = stop by coast, TRUE = no stop
StopEmcyRampBOOLTRUE
5: Low active, emergency stop to drive: FALSE = stop by ramp, TRUE = no stop
ResetBOOLFALSE
6: Reset drive faults and ‘Error’ output
AutoStartBOOLFALSE
- 7: Enables the autostart function, together with SwitchOn and Run an internal retry to restart the drive is performed steadily.
Eg. after return from local control. Be careful, Drive will restart automatically! Check the settings made in the Start mode Parameter group of the drive Ex: 21.10 FlyStart in DCS800
ControlWordB11BOOLFALSE
8: Bit 11 on Control Word - according to user specific drive configuration.
ControlWordB12BOOLFALSE
9: Bit 12 on Control Word - according to user specific drive configuration.
ControlWordB13BOOLFALSE
10: Bit 13 on Control Word - according to user specific drive configuration.
ControlWordB14BOOLFALSE
11: Bit 14 on Control Word - according to user specific drive configuration.
ControlWordB15BOOLFALSE
12: Bit 15 on Control Word - according to user specific drive configuration.
SpeedRefINT0
- 13: 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
RefValue2INT0
- 14: 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
DriveData15: drive reference variable to connect to all function blocks of this drive
Output
BusyBOOLFALSE
1: Operation is running (while output Error is FALSE)
ErrorBOOLFALSE
2: 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.
ErrorID3: Error Code
WarnActBOOLFALSE
4: Active warning. Operation is running with warning . This output is TRUE for at least one cycle or until Enable is set to FALSE. The output WarnIDLast gives more details about the warning.
WarnIDLast5: Warning code of last active warning
NoConToDriveBOOLFALSE
6: StatusWord = 0; Most probably reason: No connection to drive can be established. Check output Online of communication block. If Online is TRUE and NoConToDrive is still high, then restart the drive. If Online is TRUE and NoConToDrive is still high, then restart the drive.
ReadyBOOLFALSE
7: Ready to switch on - Bit 0 in SW
OperatingBOOLFALSE
8: Operating - drive is modulating ready reference, Bit 2 in SW
OnInhibitedBOOLFALSE
9: On inhibited active - start not possible, Bit 6 in SW
AtSetpointBOOLFALSE
10: Actual value is in setpoint tolerance zone, Bit 8 in SW
TrippedBOOLFALSE
11: Drive is tripped, Bit 3 in SW
AlarmBOOLFALSE
12: Drive has an alarm, Bit 7 in SW
LocalCtrlBOOLFALSE
13: Drive control location: Local - NOT(Bit 9) in SW (Not Remote)
ActSpeedINT0
- 14: Actual speed read from drive. For scaling see drive documentaion.
Mostly -20000 .. +20000 e.g.: Ref1min/ Ref1max Par30.11/12 for ACS5x0 or ACS880
ActValue2INT0
15: Actual value 2 read from drive
ActStatusWordWORD0
16: Actual Status Word read from drive
UsedControlWordWORD0
17: used Control Word, built in function block
MessageSTRING(65)‘’
18: Text message, state of ABB-Drives profile state machine