lad vfd control

30
Tot ally Int egrat ed Aut omat ion Port al Faceplate Workshop / PLC_1 [CPU 1215C DC/DC/Rly] / Program blocks VFD_HOA [FB64] VFD_HOA Properties General Name VFD_HOA Number 64 Type FB Language LAD Numbering automatic Information Title Motor Hand Off Auto Con‐ trol Author TBell Comment V0.0 Creation V0.1 Because it w as dis‐ covered in testing that in‐ valid status data is re‐ turned when the drive is not communicating, I add‐ ed the "online" input to the block. I added NW 12 to clear the status words again if the drive is not communicating. Family Version 0.1 User-defined ID VFD_HOA Name Data type Offset Default value Accessible from HMI Visible in HMI Setpoint Comment Input Auto Run Request Bool 0.0 false True True False 1=Run if in Auto, 0=Off if in Au‐ to Auto Speed Request Real 2.0 0.0 True True False Direction Bool 6.0 true True True False 1=Forward 0 = Reverse Hand Run Permissive Bool 6.1 true True True False 1=OK to run in Hand EStop Bool 6.2 false True True False 0=OK, 1=EStop Alarm Reset Bool 6.3 false True True False Alarms Enabled Bool 6.4 True True True False Online Bool 6.5 false True True False Whether or not the drive is in data exchange PID Tag String[10] 8.0 '' True True False

Upload: tony-bell

Post on 18-Aug-2015

136 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Lad VFD Control

Totally IntegratedAutomat ion Portal

Faceplate Workshop / PLC_1 [CPU 1215C DC/DC/Rly] / Program blocksVFD_HOA [FB64]VFD_HOA PropertiesGeneralName VFD_HOA Number 64 Type FB Language LADNumbering automaticInformationTitle Motor Hand Off Auto Con‐

trolAuthor TBell Comment V0.0 Creation

V0.1 Because it was dis‐covered in testing that in‐valid status data is re‐turned when the drive isnot communicating, I add‐ed the "online" input tothe block. I added NW 12to clear the status wordsagain if the drive is notcommunicating.

Family

Version 0.1 User-definedID

VFD_HOAName Data type Offset Default value Accessible

from HMIVisible inHMI

Setpoint CommentInput

Auto Run Request Bool 0.0 false True True False 1=Run if in Auto, 0=Off if in Au‐to

Auto Speed Request Real 2.0 0.0 True True FalseDirection Bool 6.0 true True True False 1=Forward 0 = ReverseHand Run Permissive Bool 6.1 true True True False 1=OK to run in HandEStop Bool 6.2 false True True False 0=OK, 1=EStopAlarm Reset Bool 6.3 false True True FalseAlarms Enabled Bool 6.4 True True True FalseOnline Bool 6.5 false True True False Whether or not the drive is in

data exchangePID Tag String[10] 8.0 '' True True False

Page 2: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentHW ID Int 20.0 0 True True False Hardware ID of the Profinet

TelegramOutput

Running Bool 22.0 false True True False 1=Run, 0=OffFault Bool 22.1 false True True FalseFail To Start Bool 22.2 false True True FalseFail To Stop Bool 22.3 false True True FalseActual Speed In Percent Real 24.0 0.0 True True False

InOutStatic

HMI SP Hand Bool 28.0 false True True False 1=RunHMI SP Off Bool 28.1 true True True False 1=OffHMI SP Auto Bool 28.2 false True True False 1=AutoHMI SP Alarming Enabled Bool 28.3 True True True True 1= Alarming for this device is

activated on HMIHMI SP Fail To Start Time Real 30.0 12.0 True True TrueHMI SP Fail To Stop Time Real 34.0 12.0 True True TrueHMI SP Over Current UInt 38.0 10 True True TrueHMI SP Over Current Time Real 40.0 2.0 True True TrueHMI SP Speed Control Auto Bool 44.0 false True True TrueHMI SP Manual Speed Setting Real 46.0 0.0 True True TrueHMI Runtime Real 50.0 0.0 True True FalseHMI SP Reset Runtime Bool 54.0 false True True FalseHMI Number Of Starts DInt 56.0 0 True True FalseHMI SP Reset Number Of Starts Bool 60.0 false True True FalseStatus Running Bool 60.1 false True True FalseStatus Ready Bool 60.2 false True True FalseStatus Warning Bool 60.3 false True True FalseStatus At Speed Bool 60.4 false True True FalseStatus Controlled By PLC Bool 60.5 false True True FalseStatus Run Command Bool 60.6 false True True FalseHMI HOA Status Int 62.0 0 True True FalseHMI Status Drive Operating hours UInt 64.0 0 True True FalseHMI Status Motor Voltage UInt 66.0 0 True True False

Page 3: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentHMI Status Frequency UInt 68.0 0 True True FalseHMI Status Motor Current UInt 70.0 0 True True FalseHMI Status RPM UInt 72.0 0 True True FalseHMI Status Torque Percent UInt 74.0 0 True True FalseHMI Status Drive DC Link Voltage UInt 76.0 0 True True FalseHMI Status Heat Sink Tempera‐ture C

UInt 78.0 0 True True FalseHMI Fail To Start Alarm Bool 80.0 false True True FalsePlace Holder Byte 81.0 16#0 True True FalseHMI Fail To Stop Alarm Bool 82.0 false True True FalsePlace Holder 2 Byte 83.0 16#0 True True FalseHMI Overcurrent Alarm Bool 84.0 false True True FalseAuto_Oneshot Bool 84.1 false True True FalseHand_Oneshot Bool 84.2 false True True FalseOff_Oneshot Bool 84.3 false True True FalseRuntime One Shot Bool 84.4 false True True FalseStarts One Shot Bool 84.5 false True True FalseFail to Start Timer "ON DLY TMR Sec‐

onds FloatingPoint"

True True False

InputTime_SP Real 0.0 True True Falseactivate Bool false True True False

OutputOut Bool false True True FalseElapsed Time Real 0.0 True True False

InOutStatic

ON DLY TMR IEC_TIMER True True FalseST Time T#0ms True True FalsePT Time T#0ms True True FalseET Time T#0ms True True FalseRU Bool false False False FalseIN Bool false True True False

Page 4: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentQ Bool false True True False

Info Elapsed Time ms Dint Time T#0ms True True FalseFail to Stop TImer "ON DLY TMR Sec‐

onds FloatingPoint"

True True False

InputTime_SP Real 0.0 True True Falseactivate Bool false True True False

OutputOut Bool false True True FalseElapsed Time Real 0.0 True True False

InOutStatic

ON DLY TMR IEC_TIMER True True FalseST Time T#0ms True True FalsePT Time T#0ms True True FalseET Time T#0ms True True FalseRU Bool false False False FalseIN Bool false True True FalseQ Bool false True True False

Info Elapsed Time ms Dint Time T#0ms True True FalseOver Current Timer "ON DLY TMR Sec‐

onds FloatingPoint"

True True False

InputTime_SP Real 0.0 True True Falseactivate Bool false True True False

OutputOut Bool false True True FalseElapsed Time Real 0.0 True True False

InOutStatic

ON DLY TMR IEC_TIMER True True False

Page 5: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentST Time T#0ms True True FalsePT Time T#0ms True True FalseET Time T#0ms True True FalseRU Bool false False False FalseIN Bool false True True FalseQ Bool false True True False

Info Elapsed Time ms Dint Time T#0ms True True FalseTemp

Local Always True Bool 0.0Temp Real Real 2.0Temp Dint DInt 6.0Hardware Address Temp Word 10.0PCD Array[1..10] of

Word12.0 Control Data

PCD[1] Word 0.0PCD[2] Word 2.0PCD[3] Word 4.0PCD[4] Word 6.0PCD[5] Word 8.0PCD[6] Word 10.0PCD[7] Word 12.0PCD[8] Word 14.0PCD[9] Word 16.0PCD[10] Word 18.0

Control Word Bits Array[0..15] ofBool

12.0Control Word Bits[0] Bool 0.0Control Word Bits[1] Bool 0.1Control Word Bits[2] Bool 0.2Control Word Bits[3] Bool 0.3Control Word Bits[4] Bool 0.4Control Word Bits[5] Bool 0.5Control Word Bits[6] Bool 0.6Control Word Bits[7] Bool 0.7Control Word Bits[8] Bool 1.0

Page 6: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentControl Word Bits[9] Bool 1.1Control Word Bits[10] Bool 1.2Control Word Bits[11] Bool 1.3Control Word Bits[12] Bool 1.4Control Word Bits[13] Bool 1.5Control Word Bits[14] Bool 1.6Control Word Bits[15] Bool 1.7

PSD Array[1..10] ofWord

32.0 Status DataPSD[1] Word 0.0PSD[2] Word 2.0PSD[3] Word 4.0PSD[4] Word 6.0PSD[5] Word 8.0PSD[6] Word 10.0PSD[7] Word 12.0PSD[8] Word 14.0PSD[9] Word 16.0PSD[10] Word 18.0

Status Word Bits Array[0..15] ofBool

32.0Status Word Bits[0] Bool 0.0Status Word Bits[1] Bool 0.1Status Word Bits[2] Bool 0.2Status Word Bits[3] Bool 0.3Status Word Bits[4] Bool 0.4Status Word Bits[5] Bool 0.5Status Word Bits[6] Bool 0.6Status Word Bits[7] Bool 0.7Status Word Bits[8] Bool 1.0Status Word Bits[9] Bool 1.1Status Word Bits[10] Bool 1.2Status Word Bits[11] Bool 1.3Status Word Bits[12] Bool 1.4Status Word Bits[13] Bool 1.5

Page 7: Lad VFD Control

Totally IntegratedAutomat ion Portal

Name Data type Offset Default value Accessiblefrom HMI

Visible inHMI

Setpoint CommentStatus Word Bits[14] Bool 1.6Status Word Bits[15] Bool 1.7

Read Return Word 52.0Write Return Word 54.0

ConstantNetwork 1: Create a local always true bit

S

#"Local Always True"

#"Local Always True"

Symbol Address Type Comment#"Local Always True" BoolNetwork 2: Setup HOAIf not hand or auto set hoa to off

#"HMI SP Hand" #"HMI SP Auto" #"HMI SP Off"

Symbol Address Type Comment#"HMI SP Auto" Bool 1=Auto#"HMI SP Hand" Bool 1=Run#"HMI SP Off" Bool 1=OffNetwork 3: HOA OFF

Page 8: Lad VFD Control

Totally IntegratedAutomat ion Portal

P_TRIGR

R

#"HMI SP Off"

#Off_Oneshot

#"HMI SP Hand"

#"HMI SP Auto"

CLK Q

Symbol Address Type Comment#"HMI SP Auto" Bool 1=Auto#"HMI SP Hand" Bool 1=Run#"HMI SP Off" Bool 1=Off#Off_Oneshot BoolNetwork 4: HOA Hand

P_TRIGR

R

#"HMI SP Hand"#"Hand Run Permissive"

#Hand_Oneshot

#"HMI SP Off"

#"HMI SP Auto"

CLK Q

Symbol Address Type Comment#"Hand Run Permissive" Bool 1=OK to run in Hand#"HMI SP Auto" Bool 1=Auto#"HMI SP Hand" Bool 1=Run#"HMI SP Off" Bool 1=Off#Hand_Oneshot BoolNetwork 5: HOA Auto

Page 9: Lad VFD Control

Totally IntegratedAutomat ion Portal

P_TRIGR

R

#"HMI SP Auto"

#Auto_Oneshot

#"HMI SP Hand"

#"HMI SP Off"

CLK Q

Symbol Address Type Comment#"HMI SP Auto" Bool 1=Auto#"HMI SP Hand" Bool 1=Run#"HMI SP Off" Bool 1=Off#Auto_Oneshot BoolNetwork 6: Status Word Information3Status Word________________________________________________________________Bit Bit = 0 Bit = 1 Siemens Bit00 Control not ready Control ready 801 Drive not ready Drive ready 902 Coasting Enable 1003 No error Trip 11-------------------------------------------------------------------------------------------04 OFF 2 ON 2 1205 OFF 3 ON 3 1306 Start possible Start not possible 1407 No warning Warning 15-------------------------------------------------------------------------------------------08 Speed ≠ reference Speed = reference 009 Local operation Bus control 110 Out of frequency limit Frequency limit ok 211 No operation In operation 3-------------------------------------------------------------------------------------------12 Drive OK Stopped, autostart 413 Voltage OK Voltage exceeded 514 Torque OK Torque exceeded 615 Timer OK Timer exceeded 7Bit 00, Control not ready/readyWhen bit 00 = "0", bit 00, 01 or 02 of the Control word is "0" (OFF 1, OFF 2 or OFF 3) - or the

Page 10: Lad VFD Control

Totally IntegratedAutomat ion Portal

frequency converter is switched off (trip).When bit 00 = "1", the frequency converter control is ready, but there is not necessarily powersupply to the unit present (in the event of external 24 V supply of the control system).Bit 01, VLT not ready/readySame significance as bit 00, however, there is a supply of the power unit. The frequency converteris ready when it receives the necessary start signals.Bit 02, Coasting/EnableWhen bit 02 = "0", bit 00, 01 or 02 of the Control word is "0" (OFF 1, OFF 2 or OFF 3 or coasting)- or the frequency converter is switched off (trip).When bit 02 = "1", bit 00, 01 or 02 of the Control word is "1"; the frequency converter has nottripped.Bit 03, No error/TripWhen bit 03 = "0", no error condition of the frequency converter exists.When bit 03 = "1", the frequency converter has tripped and requires a reset signal before it canstart.Bit 04, ON 2/OFF 2When bit 01 of the Control word is "0", then bit 04 = "0".When bit 01 of the Control word is "1", then bit 04 = "1".Bit 05, ON 3/OFF 3When bit 02 of the Control word is "0", then bit 05 = "0".When bit 02 of the Control word is "1", then bit 05 = "1".Bit 06, Start possible/Start not possibleIf PROFIdrive has been selected in par. 8-10 Control word profile, bit 06 will be "1" after a switchoffacknowledgement, after activation of OFF2 or OFF3, and after switching on the mains voltage.Start not possible will be reset, with bit 00 of the Control word being set to "0" and bit 01, 02 and10 being set to "1".Bit 07, No warning/WarningBit 07 = “0” means that there are no warnings.Bit 07 = “1” means that a warning has occurred.Bit 08, Speed ≠ reference / Speed = referenceWhen bit 08 = "0", the current speed of the motor deviates from the set speed reference value.This may occur, for example, when the speed is being changed during start/stop through ramp

Page 11: Lad VFD Control

Totally IntegratedAutomat ion Portal

up/down.When bit 08 = "1", the current speed of the motor corresponds to the set speed reference value.Bit 09, Local operation/Bus controlBit 09 = "0" indicates that the frequency converter has been stopped by means of the stop buttonon the control panel, or that [Linked to hand] or [Local] has been selected in par. 3-13 Referencesite.When bit 09 = "1", the frequency converter can be controlled through the serial interface.Bit 10, Out of frequency limit/Frequency limit OKWhen bit 10 = "0", the output frequency is outside the limits set in par. 4-11 Motor speed lowlimit (rpm) and par. 4-13 Motor speed high limit (rpm). When bit 10 = "1", the output frequencyis within the indicated limits.Bit 11, No operation/OperationWhen bit 11 = "0", the motor does not turn.When bit 11 = "1", the frequency converter has a start signal, or the output frequency is higherthan 0 Hz.Bit 12, Drive OK/Stopped, autostartWhen bit 12 = "0", there is no temporary overloading of the inverter.When bit 12 = "1", the inverter has stopped due to overloading. However, the frequency converterhas not switched off (trip) and will start again after the overloading has ended.Bit 13, Voltage OK/Voltage exceededWhen bit 13 = "0", the voltage limits of the frequency converter are not exceeded.When bit 13 = "1", the direct voltage in the intermediate circuit of the frequency converter is toolow or too high.Bit 14, Torque OK/Torque exceededWhen bit 14 = "0", the motor torque is below the limit selected in par. 4-16 Torque limit motormode and par. 4-17 Torque limit generator mode. When bit 14 = "1", the limit selected in par.4-16 Torque limit motor mode or par. 4-17 Torque limit generator mode is exceeded.Bit 15, Timer OK/Timer exceededWhen bit 15 = "0", the timers for the thermal motor protection and thermal frequency converterprotection have not exceeded 100%.When bit 15 = "1", one of the timers has exceeded 100%.

Page 12: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type CommentNetwork 7: Clear Status Words

FILL_BLK

010

#PSD[1]ENINCOUNT

ENOOUT

Symbol Address Type Comment#PSD[1] Word Status DataNetwork 8: Get the Hardware ID number and move to temp

MOVE

#"HW ID" #"Hardware Address Temp"

ENIN

ENO

OUT1

Symbol Address Type Comment#"Hardware Address Temp" Word#"HW ID" Int Hardware ID of the Profinet TelegramNetwork 9: Read Status Words

Page 13: Lad VFD Control

Totally IntegratedAutomat ion Portal

DPRD_DAT

#"Hardware Address Temp"

#"Read Return"#PSD

EN

LADDR

ENORET_VALRECORD

Symbol Address Type Comment#"Hardware Address Temp" Word#"Read Return" Word#PSD Array Status DataNetwork 10: Clear Status Words

FILL_BLK#Online

010

#PSD[1]ENINCOUNT

ENOOUT

Symbol Address Type Comment#Online Bool Whether or not the drive is in data exchange#PSD[1] Word Status DataNetwork 11: Convert Actual Speed Feedback

CONVtoInt DInt

CONVtoDInt Real#"Local Always True"

#PSD[2] #"Temp Dint" #"Temp Dint" #"Temp Real"ENIN

ENOOUT

toInt DIntENIN

ENOOUT

toDInt Real

Symbol Address Type Comment#"Local Always True" Bool#"Temp Dint" DInt#"Temp Real" Real#PSD[2] Word Status Data

Page 14: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 12: Convert Actual Speed Feedback to percent

DIVAuto (Real)

ABSReal

#"Temp Real"163.84

#"Temp Real" #"Temp Real" #"Actual Speed In Percent"

ENIN1IN2

ENOOUT

Auto (Real)ENIN

ENO

OUT

Real

Symbol Address Type Comment#"Actual Speed In Percent" Real#"Temp Real" RealNetwork 13: Parce received Control Word to Outputs and StatsBytes are swapped compared to documention W#16#8090 means drive is not communicating

Page 15: Lad VFD Control

Totally IntegratedAutomat ion Portal

Word==

#"Local Always True"

#"Status Word Bits"[0]

#"Status At Speed"

#"Status Word Bits"[1]

#"Status Controlled By PLC"

#"Status Word Bits"[3] #Running

#"Status Running"

#"Status Word Bits"[8] #"Status Ready"

#"Status Word Bits"[11] #Fault

#"Read Return"

w#16#8090

#"Status Word Bits"[15]

#"Status Warning"

Symbol Address Type Comment#"Local Always True" Bool#"Read Return" Word#"Status At Speed" Bool#"Status Controlled By PLC" Bool#"Status Ready" Bool#"Status Running" Bool#"Status Warning" Bool#"Status Word Bits"[0] Bool

Page 16: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"Status Word Bits"[1] Bool#"Status Word Bits"[3] Bool#"Status Word Bits"[8] Bool#"Status Word Bits"[11] Bool#"Status Word Bits"[15] Bool#Fault Bool#Running Bool 1=Run, 0=OffNetwork 14: Move Control Status Words Temps to Status words Stats

MOVE MOVE

MOVE MOVE

MOVE MOVE

MOVE MOVE

#"Local Always True"

#PSD[3] #"HMI Status Drive Operating hours"

#PSD[4] #"HMI Status Motor Voltage"

#PSD[5] #"HMI Status Frequency"#PSD[6] #"HMI Status Motor Current"

#PSD[7] #"HMI Status RPM"

#PSD[8] #"HMI Status Torque Percent"

#PSD[9] #"HMI Status Drive DC Link Voltage"

#PSD[10] #"HMI Status Heat Sink Temperature C"

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

Symbol Address Type Comment#"HMI Status Drive DC Link Volt‐age"

UInt#"HMI Status Drive Operatinghours"

UInt#"HMI Status Frequency" UInt

Page 17: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"HMI Status Heat Sink Tempera‐ture C"

UInt#"HMI Status Motor Current" UInt#"HMI Status Motor Voltage" UInt#"HMI Status RPM" UInt#"HMI Status Torque Percent" UInt#"Local Always True" Bool#PSD[3] Word Status Data#PSD[4] Word Status Data#PSD[5] Word Status Data#PSD[6] Word Status Data#PSD[7] Word Status Data#PSD[8] Word Status Data#PSD[9] Word Status Data#PSD[10] Word Status DataNetwork 15: Control Word InformationControl Word______________________________________________________________Bit Bit = 0 Bit = 100 OFF 1 ON 101 OFF 2 ON 2 F02 OFF 3 ON 303 Coasting No coasting---------------------------------------------------------------------------------------------------------------------------04 Quick stop Ramp05 Hold frequency output Use ramp06 Ramp stop Start 707 No function Reset----------------------------------------------------------------------------------------------------------------------------08 Jog 1 OFF Jog 1 ON09 Jog 2 OFF Jog 2 ON10 Data invalid Data valid 411 No function Slow down------------------------------------------------------------------------------------------------------------------------------12 No function Catch up13 Parameter set-up Selection lsb 014 Parameter set-up Selection msb

Page 18: Lad VFD Control

Totally IntegratedAutomat ion Portal

15 No function Reverse!!!!!!!!* * * * * * * To be able to change direction using the direction bit, paremeter 4-10 must be set to 2 for both directions* * * * * * * * * * * * * !!!!!!!!!!!Bit 00, OFF 1/ON 1Normal ramp stop using the ramp times of the actual selected ramp.Bit 00 = "0" leads to the stop and activation of the output relay 1 or 2 if the output frequency is0 Hz and if [Relay 123] has been selected in par. 5-40 Function relay.When bit 00 = "1", the frequency converter is in State 1: “Switching on inhibited”.Please refer to the PROFIdrive State Transition Diagram, at the end of this section.Bit 01, OFF 2/ON 2Coasting stopWhen bit 01 = "0", a coasting stop and activation of the output relay 1 or 2 occurs if the outputfrequency is 0 Hz and if [Relay 123] has been selected in par. 5-40 Function relay.When bit 01 = "1", the frequency converter is in State 1: “Switching on inhibited”.Bit 02, OFF 3/ON 3Quick stop using the ramp time of par. 3-81 Quick stop ramp time. When bit 02 = "0", a quickstop and activation of the output relay 1 or 2 occurs if the output frequency is 0 Hz and if [Relay123] has been selected in par. 5-40 Function relay.When bit 02 = "1", the frequency converter is in State 1: “Switching on inhibited”.Bit 03, Coasting/No coastingCoasting stop Bit 03 = "0" leads to a stop. When bit 03 = "1", the frequency converter can startif the other start conditions are satisfied. The selection in par. 8-50 Coasting select determines how bit 03 is linked with the corresponding function of thedigital inputs.Bit 04, Quick stop/RampQuick stop using the ramp time of par. 3-81 Quick stop ramp time.When bit 04 = "0", a quick stop occurs.When bit 04 = "1", the frequency converter can start if the other start conditions are satisfied.The selection in par. 8-51 Quick stop select determines how bit 04 is linked with thecorresponding function of the digital inputs.Bit 05, Hold frequency output/Use rampWhen bit 05 = "0", the current output frequency is being maintained even if the reference valueis modified.When bit 05 = "1", the frequency converter can perform its regulating function again; operationoccurs according to the respective reference value.

Page 19: Lad VFD Control

Totally IntegratedAutomat ion Portal

Bit 06, Ramp stop/StartNormal ramp stop using the ramp times of the actual ramp as selected. In addition, activation ofthe output relay 01 or 04 if the output frequency is 0 Hz if Relay 123 has been selected in par.5-40 Function relay. Bit 06 = "0" leads to a stop. When bit 06 = "1", the frequency converter canstart if the other start conditions are satisfied. The selection in par. 8-53 Start select determines how bit 06 is linked with the corresponding function of thedigital inputs.Bit 07, No function/ResetReset after switching off.Acknowledges event in fault buffer.When bit 07 = "0", no reset occurs.When there is a slope change of bit 07 to "1", a reset occurs after switching off.Bit 08, Jog 1 OFF/ONActivation of the pre-programmed speed in par. 8-90 Bus Jog 1 speed. JOG 1 is only possible ifbit 04 = "0" and bit 00 - 03 = "1".Bit 09, Jog 2 OFF/ONActivation of the pre-programmed speed in par. 8-91 Bus Jog 2 speed. JOG 2 is only possible ifbit 04 = "0" and bit 00 - 03 = "1".Bit 10, Data invalid/validIs used to tell the frequency converter whether the control word is to be used or ignored. Bit 10= “0” causes the control word to be ignored, Bit 10 = “1” causes the control word to be used.This function is relevant, because the control word is always contained in the telegram, regardlessof which type of telegram is used, i.e. it is possible to turn off the control word if you do not wishto use it in connection with updating or reading parameters.Bit 11, No function/Slow downIs used to reduce the speed reference value by the amount given in par. 3-12 Catch up/slowdown value. When bit 11 = "0", no modification of the reference value occurs. When bit 11 = "1",the reference value is reduced.Bit 12, No function/Catch upIs used to increase the speed reference value by the amount given in par. 3-12 Catch up/slowdown value.When bit 12 = "0", no modification of the reference value occurs.When bit 12 = "1", the reference value is increased.If both - slowing down and accelerating - are activated (bit 11 and 12 = "1"), slowing down has

Page 20: Lad VFD Control

Totally IntegratedAutomat ion Portal

priority, i.e. the speed reference value will be reduced.13 Parameter set-up Selection lsb14 Parameter set-up Selection msbBit 15, No function/ReverseBit 15 = “0” causes no reversing.Bit 15 = “1” causes reversing.Note: In the factory setting reversing is set to digital in par. 8-54 Reversing select.

Symbol Address Type CommentNetwork 16: Clear Control Words

FILL_BLK

010

#PCD[1]ENINCOUNT

ENOOUT

Symbol Address Type Comment#PCD[1] Word Control DataNetwork 17: Initialize Temp to a value that would stop the drive

MOVE

W#16#47E #PCD[1]ENIN

ENOOUT1

Symbol Address Type Comment#PCD[1] Word Control Data

Page 21: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 18: If a run request is received then move the value into the control word to start the drive

MOVE

MOVE

#"HMI SP Auto"#"Auto Run Request" #"HMI SP Off" #EStop

#"Over Current Timer".Out #"Status Ready"#"Status Run Command" #Direction

W#16#47F #PCD[1]

#"HMI SP Hand"#"Hand Run Permissive" #Direction

W#16#847F #PCD[1]

ENIN

ENOOUT1

ENIN

ENOOUT1

Symbol Address Type Comment#"Auto Run Request" Bool 1=Run if in Auto, 0=Off if in Auto#"Hand Run Permissive" Bool 1=OK to run in Hand#"HMI SP Auto" Bool 1=Auto#"HMI SP Hand" Bool 1=Run#"HMI SP Off" Bool 1=Off#"Over Current Timer".Out Bool#"Status Ready" Bool#"Status Run Command" Bool#Direction Bool 1=Forward 0 = Reverse#EStop Bool 0=OK, 1=EStop#PCD[1] Word Control DataNetwork 19: If a reset is received; or the control word with the reset bit

ORWord#"Alarm Reset"

#PCD[1]W#16#80

#PCD[1]ENIN1IN2

ENOOUT

Word

Symbol Address Type Comment#"Alarm Reset" Bool#PCD[1] Word Control Data

Page 22: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 20: Speed Setpoint ConversionRange is from 0 to 4000 hex = 0 to 16384 decimal

MULAuto (Real)

MULAuto (Real)

#"HMI SP Speed Control Auto"

163.84#"Auto Speed Request"

#"Temp Real"

#"HMI SP Speed Control

Auto"

163.84#"HMI SP

Manual Speed Setting"

#"Temp Real"

ENIN1

IN2

ENOOUT

Auto (Real)

ENIN1

IN2

ENOOUT

Auto (Real)

Symbol Address Type Comment#"Auto Speed Request" Real#"HMI SP Manual Speed Setting" Real#"HMI SP Speed Control Auto" Bool#"Temp Real" RealNetwork 21: Convert Speed from real to word

ROUNDtoReal DInt MOVE

#"Temp Real" #"Temp Dint" #"Temp Dint" #PCD[2]ENIN

ENOOUT

toReal DIntENIN

ENOOUT1

Symbol Address Type Comment#"Temp Dint" DInt#"Temp Real" Real#PCD[2] Word Control Data

Page 23: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 22: Write Control Data Words to the Drive

DPWR_DAT

#"Hardware Address Temp"

#PCD

#"Write Return"EN

LADDRRECORD

ENORET_VAL

Symbol Address Type Comment#"Hardware Address Temp" Word#"Write Return" Word#PCD Array Control DataNetwork 23: Fail to start alarm

"ON DLY TMR Seconds Floating Point"%FB4%FB4

#"Fail to Start Timer"

#"HMI SP Fail To Start Time"

#"Fail to Start Timer".Out#"Fail to Start Timer"."Elapsed Time"#"Status Run Command" #"Status Word Bits"[3] #"Status Word Bits"[1] #"Alarms Enabled"

#"HMI SP Alarming Enabled"

#"Fail to Start Timer".Out #"Alarm Reset"

EN

Time_SP

activate

ENO

Out

Elapsed Time

Symbol Address Type Comment#"Alarm Reset" Bool#"Alarms Enabled" Bool#"Fail to Start Timer" Multi_FB

Page 24: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"Fail to Start Timer"."ElapsedTime"

Real#"Fail to Start Timer".Out Bool#"HMI SP Alarming Enabled" Bool 1= Alarming for this device is activated on HMI#"HMI SP Fail To Start Time" Real#"Status Run Command" Bool#"Status Word Bits"[1] Bool#"Status Word Bits"[3] BoolNetwork 24: Fail To Stop

"ON DLY TMR Seconds Floating Point"

%FB4%FB4

#"Fail to Stop TImer"

#"HMI SP Fail To Stop Time"

#"Fail to Stop TImer".Out#"Fail to Stop TImer"."Elapsed Time"#"Status Word

Bits"[3]#"Status Run Command"

#"Status Word Bits"[1]

#"Alarms Enabled"

#"HMI SP Alarming Enabled"

#"Fail to Stop TImer".Out #"Alarm Reset"

EN

Time_SP

activate

ENO

Out

Elapsed Time

Symbol Address Type Comment#"Alarm Reset" Bool#"Alarms Enabled" Bool#"Fail to Stop TImer" Multi_FB#"Fail to Stop TImer"."ElapsedTime"

Real#"Fail to Stop TImer".Out Bool#"HMI SP Alarming Enabled" Bool 1= Alarming for this device is activated on HMI#"HMI SP Fail To Stop Time" Real#"Status Run Command" Bool

Page 25: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"Status Word Bits"[1] Bool#"Status Word Bits"[3] BoolNetwork 25: Over Current AlarmDisabled for now

"ON DLY TMR Seconds Floating Point"

%FB4

UInt>=

%FB4

#"Over Current Timer"

#"HMI SP Over Current Time"

#"Over Current Timer".Out#"Over Current Timer"."Elapsed Time"

#"HMI Status Motor Current"

#"HMI SP Over Current"

#"Local Always True"

#"Alarms Enabled"

#"HMI SP Alarming Enabled"

#"Over Current Timer".Out #"Alarm Reset"

EN

Time_SP

activate

ENO

Out

Elapsed Time

Symbol Address Type Comment#"Alarm Reset" Bool#"Alarms Enabled" Bool#"HMI SP Alarming Enabled" Bool 1= Alarming for this device is activated on HMI#"HMI SP Over Current Time" Real#"HMI SP Over Current" UInt#"HMI Status Motor Current" UInt#"Local Always True" Bool#"Over Current Timer" Multi_FB#"Over Current Timer"."ElapsedTime"

Real#"Over Current Timer".Out Bool

Page 26: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 26: Fail to start and stop to outputs of block and to HMI

#"Local Always True" #"Fail to Start Timer".Out #"Fail To Start"

#"Fail to Stop TImer".Out #"Fail To Stop"

#"HMI Fail To Stop Alarm"

#"HMI Fail To Start Alarm"

Symbol Address Type Comment#"Fail to Start Timer".Out Bool#"Fail To Start" Bool#"Fail to Stop TImer".Out Bool#"Fail To Stop" Bool#"HMI Fail To Start Alarm" Bool#"HMI Fail To Stop Alarm" Bool#"Local Always True" BoolNetwork 27: 0=Stopped, 1 = Running Ramping, 2 = Running At Speed, 3 = Fail to Start, 4 = Fail to Stop, 5 = Faulted

Page 27: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 27: 0=Stopped, 1 = Running Ramping, 2 = Running At Speed, 3 = Fail to Start, 4 = Fail to Stop, 5 = Faulted (1.1 / 2.1)

MOVE

MOVE

MOVE

MOVE

MOVE

MOVE

Word==

#"Local Always True"

0 #"HMI HOA Status"

#"Status Word Bits"[3]

#"Status Word Bits"[0]

1 #"HMI HOA Status"

#"Status Word Bits"[3]

#"Status Word Bits"[0]

2 #"HMI HOA Status"

#"Fail to Start Timer".Out

3 #"HMI HOA Status"

#"Fail to Stop TImer".Out

4 #"HMI HOA Status"

#"HMI SP Alarming Enabled" #"Status Word

Bits"[11]

5 #"HMI HOA Status"#"Read Return"

w#16#8090

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

ENIN

ENO

OUT1

2.1 ( Page1 - 28)

Page 28: Lad VFD Control

Totally IntegratedAutomat ion Portal

Network 27: 0=Stopped, 1 = Running Ramping, 2 = Running At Speed, 3 = Fail to Start, 4 = Fail to Stop, 5 = Faulted (2.1 / 2.1)1.1 ( Page1 - 27)

MOVE

MOVE

#"Over Current Timer".Out

6 #"HMI HOA Status"

#Online

7 #"HMI HOA Status"

ENIN

ENO

OUT1

ENIN

ENO

OUT1

Page 29: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"Fail to Start Timer".Out Bool#"Fail to Stop TImer".Out Bool#"HMI HOA Status" Int#"HMI SP Alarming Enabled" Bool 1= Alarming for this device is activated on HMI#"Local Always True" Bool#"Over Current Timer".Out Bool#"Read Return" Word#"Status Word Bits"[0] Bool#"Status Word Bits"[3] Bool#"Status Word Bits"[11] Bool#Online Bool Whether or not the drive is in data exchangeNetwork 28: Calculate Runtime hours

P_TRIGADDReal

#"Status Running" "Clock_1Hz"

%M0.5%M0.5

#"Runtime One Shot" 0.0002777778#"HMI Runtime"

#"HMI Runtime"CLK Q EN

IN1IN2

ENOOUT

Real

Symbol Address Type Comment"Clock_1Hz" %M0.5 Bool#"HMI Runtime" Real#"Runtime One Shot" Bool#"Status Running" BoolNetwork 29: HMI Reset Runtime Hours

MOVE#"HMI SP Reset Runtime"

0.0 #"HMI Runtime"ENIN

ENOOUT1

Page 30: Lad VFD Control

Totally IntegratedAutomat ion Portal

Symbol Address Type Comment#"HMI Runtime" Real#"HMI SP Reset Runtime" BoolNetwork 30: Number Of Starts

P_TRIGADD

Auto (DInt)#"Status Running"

#"Starts One Shot" #"HMI Number Of Starts"1

#"HMI Number Of Starts"

CLK Q EN

IN1IN2

ENO

OUT

Auto (DInt)

Symbol Address Type Comment#"HMI Number Of Starts" DInt#"Starts One Shot" Bool#"Status Running" BoolNetwork 31: Reset Number of Starts

MOVE#"HMI SP Reset

Number Of Starts"

0 #"HMI Number Of Starts"

ENIN

ENO

OUT1

Symbol Address Type Comment#"HMI Number Of Starts" DInt#"HMI SP Reset Number Of Starts" Bool