Technical Forum

Process Control Systems SIMATIC PCS 7

while key pressed

Thread Starter: saseryu   Started: 8/8/2012 5:13 PM   Replies: 20

« Previous thread Next thread »
123» Page 1 of 3 (21 items)
  8/8/2012, 5:13 PM
Joined 5/17/2007
Last visit: 5/1/2013
Posts: 37
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hi,

i want to start fwd or rev to motL while i pressing the fwd or rev button in manual mode, in automatic mode there is no problem. is this possible in standart faceplate? or i should add another buttons to do this.

Best regards,

Top
  8/9/2012, 2:32 PM
Joined 4/7/2011
Last visit: 6/15/2013
Posts: 2
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 


hi saseryu;
                u can better use motrev block instead of motl.try and if solved add thankx button.
Top
  8/9/2012, 5:37 PM
Joined 5/17/2007
Last visit: 5/1/2013
Posts: 37
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

hi,

the problem is not motl or motrev block, the problem is while i pressing the start (or fwd or rev)button the motor should run otherwise the motor should stop. no matter which block you used.

Top
  8/9/2012, 6:01 PM
Joined 11/4/2011
Last visit: 6/18/2013
Posts: 163
Rating:
Rated: Excellent [4.53 out of 5 / rated 19 time(s)]. (19) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I'm afraid it's not possible
saseryu, would you modify the standard faceplate then?
Top
  8/9/2012, 8:14 PM
Joined 5/17/2007
Last visit: 5/1/2013
Posts: 37
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi TerminalBuzz,

i think that add butons on screen and then set the related tag on pres buton and reset the tag on release the button. Can i do this on standart faceplate?

Best Regards
Top
  8/10/2012, 8:39 AM
Joined 11/4/2011
Last visit: 6/18/2013
Posts: 163
Rating:
Rated: Excellent [4.53 out of 5 / rated 19 time(s)]. (19) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I would advise you to make a copy of  @PG_APL_OA_Binary103.pdl  and to work with it with a new name.

Then open  @PG_MotL_Standard.pdl  and select the button  csoBtnCommand.
Change  Links\OpAreaPicture  from  @pg_apl_oa_binary103.pdl  to that  new_name.pdl.

And now study the Scripts of a Mouse Event, disable OK buttons, also maybe you should add a new Event (in a Configuration Dialog)..

I can't tell you more information cause I didn't try to do this task and haven't time for that.. :(
But I'm shure that I would have to do it, later.
Top
Thank you for this post from:
  8/10/2012, 2:33 PM
Joined 5/17/2007
Last visit: 5/1/2013
Posts: 37
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
hi TerminaBuzz,

i like your solution and i am trying but i also make a copy to @PG_MotSpdL_Standard a new name that "picturex" and now i should when i click the block icon picturex faceplate open but i cannot cry, how can i link the related picture.

on press left C script

APL_OpenFaceplate(lpszPictureName, lpszObjectName,0, NULL, NULL );

to open the @PG_MotSpdL_Standard picture but how to can i link to picturex??



=== Edited by saseryu @ 8/10/2012 2:36 PM [GMT ] ===


Top
  8/10/2012, 3:18 PM
Joined 11/4/2011
Last visit: 6/18/2013
Posts: 163
Rating:
Rated: Excellent [4.53 out of 5 / rated 19 time(s)]. (19) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
It's not that easy.

First of all tell us what is that new name for the Standard view.

All the pdls for the views should be named as:
@PG_MotSpdL.PDL
@PG_MotSpdL_Limit.PDL
@PG_MotSpdL_Overview.PDL
@PG_MotSpdL_Parameter.PDL
@PG_MotSpdL_Preview.PDL
@PG_MotSpdL_Standard.PDL
@PG_MotSpdL_ViewToolbar.PDL


And don't even try to rename something. Many scripts are using these special names so you would get lost while searching for all the places were you must put changes.

If you want a separate pdl for some view (e.g. @PG_MotSpdL_NewStandard.PDL) you'd better create your own FB like MotSpd2 with the IOs like in MotSpdL and call the MotSpdL block in yours. Connect your IOs to ModSpdL's.

Then copy all the view-pdls. You would get:
@PG_MotSpd2.PDL
@PG_MotSpd2_Limit.PDL
@PG_MotSpd2_Overview.PDL
@PG_MotSpd2_Parameter.PDL
@PG_MotSpd2_Preview.PDL
@PG_MotSpd2_Standard.PDL
@PG_MotSpd2_ViewToolbar.PDL


And don't forget about Block Icon.

That's not all, but I believe that this way is easier and safer than changing scripts.
Top
  8/10/2012, 3:43 PM
Joined 5/17/2007
Last visit: 5/1/2013
Posts: 37
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
so easy cool

so i give up and return to my first solution and add 2 button on related screen grin

Thanks
Top
  8/10/2012, 4:28 PM
Joined 11/4/2011
Last visit: 6/18/2013
Posts: 163
Rating:
Rated: Excellent [4.53 out of 5 / rated 19 time(s)]. (19) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
What is that related screen's name?

Remember that Control buttons are located at  @PG_APL_OA_Binary103.PDL  and this screen is also used by different units (Motors, Valves..)

Do you now how to hide your additional buttons for all the other units?
Top
123» Page 1 of 3 (21 items)
Actions