Schneider Electric 312 manual Example of Control of the Drive, Ready for switch on

Page 28

Integration of the ATV312 in a PROFIBUS DP network controlled by a Modicon TSX P57 354M

Example of Control of the Drive

Here is a SR section extract link to an operator view which displays and enables the control of the CiA402 state machine of the drive.

%MW200:=%IW0.3.0.4 AND 16#006F; %MW201:=%IW0.3.0.4 AND 16#000F;

IF (%MW201=16#0008 OR %MW201=16#000F)AND(%QW0.3.0.4=16#0080) then %QW0.3.0.4:=16#0000;

END_IF;

(* switch on disabled *)

IF(%MW200=16#0040 OR %MW200=16#0060)AND %M102 THEN %QW0.3.0.4:=16#0006;

END_IF;

(* Ready for switch on *)

IF((%MW200=16#0021 OR %MW200=16#0001)AND %M103)OR(%MW200=16#0023 AND %M101)OR((%MW200=16#0007 OR %MW200=16#0003)AND %M111)OR(%MW200=16#0027 AND %M100)THEN

%QW0.3.0.4:=16#0000; END_IF;

(* Switched On *)

IF(%MW200=16#0023 AND %M105)OR(%MW200=16#0027 AND %M112)THEN %QW0.3.0.4:=16#0006;

END_IF;

(*switched on*)

IF((%MW200=16#0021 OR %MW200=16#0001)AND %M104)OR(%MW200=16#0027 AND %M107)THEN %QW0.3.0.4:=16#0007;

END_IF;

(*Operation enable Forward Command*) IF %MW200=16#0023 AND %M106 THEN

%QW0.3.0.4:=16#000F; END_IF;

(* fast stop*)

IF %MW200=16#0027 AND %M108 THEN %QW0.3.0.4:=16#000B;

END_IF;

(* Quick stop active*)

IF(%MW200=16#0007 OR %MW200=16#0003)AND %M109 THEN %QW0.3.0.4:=16#000F;

END_IF;

(*fault state*)

IF(%MW201=16#0008 OR %MW201=16#000F)AND %M110 THEN %QW0.3.0.4:=16#0080;

END_IF;

28

S1A10386 10/2009

Image 28
Contents Altivar Page Contents Important Information Please NoteBefore you begin Hazard of Electric SHOCK, EXPLOSION, or ARC FlashDocumentation structure Introduction PresentationDrive terminal displays FormatsInstalling the card in the drive Hardware setupReceipt Hardware setup Terminal Function Electrical characteristics Characteristics and functions of the terminalsTherefore the direction of operation Connection to the Modbus base port Number Terminal Electrical characteristicsConnection to the Profibus DP network Connection accessories Example of connectionWire sizes Wiring diagram for ATV 312 equipped with VW3 A312Recommendations Address Switches 5-4-3-2-1 ConfigurationCoding the drive address At first power on with a Profibus DP option card Drive default valuesPower on after removing the Profibus DP option card Control of the drive when LAC = L1 or L2 Control of the drive when LAC = L3Control of an ATV 312 from a Profibus DP option card Parameter Value CommentControl via Profibus DP in native profile CiA402 Diagnostics Diagnostic LEDsDX Green LED Status ST Red LED StatusCommunication fault management Code Name Probable cause RemedyProfibus DP mapping Profibus DP protocolInput PZDs Output PZDsPKW request Output PKWs PKW aperiodic serviceInput PKWs Examples of PKW aperiodic exchanges Configuration of the communication Project configurationPL7 output word Altivar PL7 input word AltivarConfiguration with SyCON additional Software Configuration of the slaveSave the projet PLC IO image / Altivar 312 DP slave mappingPZD area PKW area Altivar TSX P57 354M TSX P57 354 M IO memoryReady for switch on Example of Control of the DriveAnimated operator screen example GSD installation Configuration of the deviceS1A10386 10/2009 PLC IO image / Altivar 312 DP slave mapping PZD areaPKW area Altivar S7-315 PEW S7 315 PAW Parameter IO memorySupervision and control in Line mode IEC 61800-7 status chartNot ready to switch on Initialization Switch on disabled ConfigurationReady to switch on and Switched on Drive initialized Operation enabled OperationalCMD control word W8501 ETA status word W3201 MSK = ETAATV312PROFIBUSDPS1A1038601 S1A10386 10/2009