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 |