![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
|
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.... |
|
|
|
#2 |
|
Lifetime Supporting Member
|
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 |
|
|
|
#3 | |
|
Lifetime Supporting Member
|
Quote:
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 |
|
|
|
|
#4 |
|
Member
|
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. |
|
|
|
#5 |
|
Member
|
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 |
|
|
|
#6 | |
|
Lifetime Supporting Member
|
Quote:
__________________
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. |
|
|
|
|
#7 |
|
Member
![]() 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. |
|
|
|
#8 |
|
Member
|
Thanks Guys.
Help as always. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |