You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old September 11th, 2007, 12:57 PM   #1
SNK
Member
Canada

SNK is offline
 
SNK's Avatar
 
Join Date: May 2004
Location: Toronto, Ontario
Posts: 877
Unhappy Fix32 version 7.xx Pushbutton Control

Hey people, I am finishing a changenote on an existing system that uses the FIX32v7.xx, and I need to have the button on my screen be a MOMENTARY button. From what I am using so far, I am using the Script Editor and (Command Button) and can only achieve a "Toggle".
This is not practical for me in my PLC program, so I need the action to be a "Momentary" trigger, not a "Toggle".
The electronic books do not indicate any such animal. Am I missing something?
Please let me know if you understand my question properly,
Thanks....
  Reply With Quote
Old September 11th, 2007, 01:41 PM   #2
Mickey
Lifetime Supporting Member
United States

Mickey is offline
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 7,522
I do two things:
First I write script as follows

CLOSEDIG FIX:TESTDI.A_CV
PAUSE 1
OPENDIG FIX:TESTDI.A_CV

I also clear, reset, unlatch ( depends on your PLC) the bit in my PLC, that was turned on by FIX after it is used. ( just to be sure its turned off)
__________________
Mickey

If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else.
----- Chinese Proverb
  Reply With Quote
Old September 11th, 2007, 03:15 PM   #3
curlyandshemp
Lifetime Supporting Member
Canada

curlyandshemp is offline
 
curlyandshemp's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 1,611
Quote:
Originally Posted by SNK
Hey people, I am finishing a changenote on an existing system that uses the FIX32v7.xx, and I need to have the button on my screen be a MOMENTARY button. From what I am using so far, I am using the Script Editor and (Command Button) and can only achieve a "Toggle".
This is not practical for me in my PLC program, so I need the action to be a "Momentary" trigger, not a "Toggle".
The electronic books do not indicate any such animal. Am I missing something?
Please let me know if you understand my question properly,
Thanks....
I believe you can creat a script assigned to the push button, where ON ACTION DOWN, SETVAL the bit to 1,
then ON ACTION UP , SETVAL the bit to 0

Thats how I have momentary button on FIX32

Ian
__________________
Work to Ride,
Then Ride to Work
  Reply With Quote
Old September 11th, 2007, 04:10 PM   #4
SNK
Member
Canada

SNK is offline
 
SNK's Avatar
 
Join Date: May 2004
Location: Toronto, Ontario
Posts: 877
So would this work?

TOGGLEDIG FIX:TESTDI.A_CV
SETVAL FIX:TESTDI.A_CV=1

Is ACTION DOWN in the script editor?

I am using the bit from the Fix to Latch into a state.
At the end of my state process, I DO-NOT want the Fix32 bit to be enabled still, because I unlatch my state bit with other operands.

Could one of you guys post your actual code for the momentary change? Mickey, Yours looks like it is a code snippet, can I use that other than just change the tag?

Last edited by SNK; September 11th, 2007 at 04:14 PM.
  Reply With Quote
Old September 11th, 2007, 04:44 PM   #5
Ken Moore
Member
United States

Ken Moore is offline
 
Ken Moore's Avatar
 
Join Date: May 2004
Location: Upstate South Carolina
Posts: 2,325
Use Mickey's example, I have several Fix 7.0 applications and that's exactly how I do it. Sometimes if you're communicating via serial, the you may have to increase the pause time.
__________________
"To give real service you must add something that cannot be bought or measured with money; and that is sincerity and integrity."
- Donald A. Adams

  Reply With Quote
Old September 11th, 2007, 05:23 PM   #6
Mickey
Lifetime Supporting Member
United States

Mickey is offline
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 7,522
Quote:
Originally Posted by SNK
So would this work?

TOGGLEDIG FIX:TESTDI.A_CV
SETVAL FIX:TESTDI.A_CV=1

Is ACTION DOWN in the script editor?

I am using the bit from the Fix to Latch into a state.
At the end of my state process, I DO-NOT want the Fix32 bit to be enabled still, because I unlatch my state bit with other operands.

Could one of you guys post your actual code for the momentary change? Mickey, Yours looks like it is a code snippet, can I use that other than just change the tag?
Yes, just change Node and tag. Also pause time to suit your application, as Ken pointed out.
__________________
Mickey

If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else.
----- Chinese Proverb

Last edited by Mickey; September 11th, 2007 at 05:34 PM.
  Reply With Quote
Old September 11th, 2007, 09:20 PM   #7
pw3
Member
United States

pw3 is offline
 
Join Date: Sep 2007
Location: MICHIGAN
Posts: 87
Fix dynamo sets

We're running iFix 3.5, but started out with Fix 6.xx on one of our older apps and then migrated it up to iFix.

Anyway, look in your Dynamo sets (.fds files) for one called "momentar.fds". It should have been put there when you did your install--if not, look at their website it may be there as a free download.

In this set you will find several momentary push button templates. Drag and drop one on your desktop and then edit the script to send a 0/1 to your device. They also make one with a keypad (handy) and some other animated vessels.
  Reply With Quote
Old September 12th, 2007, 06:41 AM   #8
SNK
Member
Canada

SNK is offline
 
SNK's Avatar
 
Join Date: May 2004
Location: Toronto, Ontario
Posts: 877
Thanks Guys.

Help as always.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Hydraulic Winch Control shelnian LIVE PLC Questions And Answers 10 May 3rd, 2006 09:51 AM
Dcs, Scada hasnoclue LIVE PLC Questions And Answers 15 April 11th, 2005 06:12 AM
PID - what is it anyway? Ron Beaufort LIVE PLC Questions And Answers 6 May 22nd, 2003 11:21 PM
how often should I trigger the PID? Ron Beaufort LIVE PLC Questions And Answers 11 February 22nd, 2003 10:57 AM
grounding power sources drewcrew6 LIVE PLC Questions And Answers 18 December 12th, 2002 05:16 PM


All times are GMT -5. The time now is 09:41 PM.


.