How to write a numeric value to a plc register using a radio button
I'm want display a HOA (HAND/OFF/AUTO) on my screen. Lookout is connected to a Allen Bradley PLC. I am trying to write to a "N" register. I want to write a zero to open all (eg) N7:10 bits, writing a one (1) will close a contact N7:10/0 and writing a two (2) will close N7:10/1 etc. How do I do it? Can I use a radio button and if so, how?
ICI,
Just wanted to let you know that you have posted your question in the
MATRIXx part of the forum. There is a specific board for
Lookout. If you repost your message there you will be more likely
to get a good answer.
Carl L
National Instruments
Similar Messages
-
How do I add numeric values as text in XML??
HI,
So, I've developed a 3d carousel using this tutorial and the XML, and customized the XML in Dreamweaver.
http://www.gotoandlearn.com/play?id=33
Now, I've got the carousel set up exactly the way I would like, but the only trouble, is how do I add numeric values as the text for the xml file???
Here's an example to the working carousel and where text is loaded for each item on it. (put your sound on mute if you don't want to hear the video)
http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
For example, in my XML, if I would like the text to be "3d images", when I export the FLA, only "d images" comes through because the numeric values can't be added as the text for the tooltip.
Does anyone have any ideas?
Here is an example of how the XML is loaded into the .swf - the text loads great, but just not the numeric characters.
The same story can be said for special characters, I would like to know how to add a "&" sign too.
<icons>
<icon image="images/Subsalt_E_P_Partnerships.png" tooltip="3D Images" content="Text Copy.">
</icon>
</icons>
Any help would be greatly appreciated.
Thank you.Hi Randy,
Thanks a lot for the reply. Your post got me thinking that it's actually a flash problem, as the actual descriptor text shows 123,etc and "&".
The trouble is that the icons are dynamically loaded from the XML to movie clips on the flash file. I've asked the flash forum to see if they could take a look.
Thanks again.
Mike -
How to write an xml Document to a flat file using JAVA....
Can any one help me out.....
How to write a XML Document to the current filesystem using JAVA....
without using com.sun.xml.tree.*....
Document xmlDoc;
Node rows = (Node) xmlDoc.createElement("ROWS");
xmlDoc.appendChild(rows);
and i have to write this xmlDoc to a file called(abc.xml) for further use...Have you considered using JDOM? ( www.jdom.org )
The XMLOutputter class can write the Document to a file. ( The Document however will be an org.jdom.Document object ).
If you are weary of a new API, you could just create a new File object called abc.xml and stream the data from the XML Document you have to this new File object. -
How to send the ALV GRID output to spool by using the print button in std t
How to send the ALV GRID output to spool by using the print button in standard tool bar.
We have created a button in the va02 transaction. If user click on the button the new screen will be display on that screen we are populating the alv grid output using the oops concept. But i am unable to send the output to spool using the print button in the standard tool bar.
I am able to display the Print parameter dialog box but i am not able to send it to spool.
Kindly help.
Thanks In Advance.
G.V.RamanaHi Shaik,
There is not properties button in my print screen.
MODULE user_command_0900 INPUT.
WHEN 'EXCEL'.
PERFORM excel_download.
WHEN 'PRI'.
PERFORM print_output.
form Print_output.
CALL FUNCTION 'RSPO_LIST_LAYOUT_FITS'
EXPORTING
columns = 80
device = 'ANY '
lines = 65
maxpenality = 1999
TABLES
layouts = lt_layouts1
EXCEPTIONS
unknown_device = 1
OTHERS = 2.
IF sy-subrc = 0.
LOOP AT lt_layouts1.
IF lt_layouts1-penality < 1000 AND
lt_layouts1-penality < l_min_penality.
l_layout = lt_layouts1-layout.
l_min_penality = lt_layouts1-penality.
ENDIF.
ENDLOOP.
IF NOT l_layout IS INITIAL.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
mode = 'CURRENT'
line_size = 80 "#EC *
new_list_id = l_new_list_id
no_dialog = l_no_dialog
layout = l_layout
IMPORTING
out_archive_parameters = rs_arc_params
out_parameters = rs_pri_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0. " INS SLIN
ENDIF. " INS SLIN
IF rs_pri_params-linsz LT 80 OR
rs_pri_params-linsz LT gt_stack-s_lprint-width.
gt_stack-print_line_break = 'X'.
ELSE.
CLEAR gt_stack-print_line_break.
ENDIF.
IF l_valid NE 'X'.
rs_pri_params = ls_pri_params_sav.
rs_arc_params = ls_arc_params_sav.
ENDIF.
ENDIF.
ENDIF.
endform. " Print_output
CALL METHOD gv_cost_tot_alv_grand->set_table_for_first_display
EXPORTING
is_layout = gs_layout_cost_tot_grand
CHANGING
it_fieldcatalog = gt_fcat_cost_tot_grand[]
it_outtab = gt_cost_tot_grand[].
Please check my code -
How to use a radio button in enabling/disabling a text box in report progra
Hi,
Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.*& Report ZMR_RADIO_BUTTONS
REPORT ZMR_RADIO_BUTTONS.
PARAMETERS : R1 RADIOBUTTON GROUP G1,
R2 RADIOBUTTON GROUP G1.
PARAMETERS : A1 TYPE I,
A2 TYPE I.
AT SELECTION-SCREEN OUTPUT.
*initialization.
IF R1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'A1'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
ENDIF.
IF SCREEN-NAME = 'A2'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'A1'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
ENDIF.
IF SCREEN-NAME = 'A2'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
ENDIF.
modify screen.
ENDLOOP.
ENDIF.
START-OF-SELECTION.
*IF R1 = 'X'.
*LOOP AT SCREEN.
IF SCREEN-NAME = 'A1'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
ENDIF.
*ENDLOOP.
*ENDIF.
*IF R2 = 'X'.
*LOOP AT SCREEN.
IF SCREEN-NAME = 'A2'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
ENDIF.
*ENDLOOP.
*ENDIF. -
How to invoke the app by touching the screen (without using the home button)
Kindly provide the solutions for the following issues
1. How to invoke the app by touching the screen (without using the home button)
2. Estimated lifespan running an iPad3 continuously 24x7
awaiting for your valuable response.
Thanks and regards,
Sathya.1. You can only invoke an app by touching its icon.
2. All depends on what your app does. -
How to write array of values to cluster of indicators(tank sliders)??
I am trying to write a 1-D array of values to thier corresponding 8 tank sliders.
So each element of the array will be displayed as the value of the slider.
How can I do this?
It works if you display it to a cluster of numeric values, but not the sliders.
I also tried writing the array to the "value" property of the each of the sliders, but still doesn't seem to work.
Any suggestions?
Solved!
Go to Solution.001,
How did you create those sliders? They are actaully clusters of two elements, both of which appear to be identical sliders sitting on top of each other.
That is probably why you are having so much trouble wiring your data to them. I suggest that you create a new cluster with standard sliders. Then you can use the Array to Cluster primitive to move the data.
Two cautions: 1. The Array to Cluster defaults to 9 elements in the cluster regardless of the number of elements in the array. Pop up on the cluster output terminal to change the number of elements if needed.
2. You apparently added items to the cluster out of order. The cluster order is important if you want to get the data to the right places.
Also, it would be much easier for us to test your code if you included some data in 2D Array Input. Put the data in there then Edit >> Make Current Values Default. Then save.
Lynn -
How to pass a numeric value without its format to a subsequence?
I have a sequence with a numeric parameter that is interpreted as a 16-bit bit mask. The numeric format of the parameter of that sequence is therefore "%#.16b".
I also have a Sequence Call step in a second sequence (in the same file) that calls this first sequence. That second sequence passes literal values for that bit mask in the Sequence Call. My specific problem at this point is that, while debugging, I don't see the parameters in the numeric format I explicitly specified for them, but rather in one of three possible formats:
- Literal values seem to come with a "system"-wide (maybe sequence-file-specific?) default format, which is decimal instead of binary.
- Variable values (e.g. from the Locals) have their specific (and also explicitly defined) numeric format, which can be anything instead of binary.
- If I don't pass a value but use the parameter default, this default is shown in the parameter's actual numeric format, binary. This is the only case that works as intended.
How do I get the parameters to *always* keep the numeric format I specified for that sequence?
The attached file tries to reproduce the problem and the intended result using only Sequence Calls and Message Popups. My version is TestStand 3.1f1.I just want to debug my subsequence and see its parameter represented as "0b0000000000011010" when I supply a literal value of 26.
Ok, I try to be more explicit and show my problem using your suggestion: (The resulting sequence file is attached.)
- Create a new sequence file.
- Insert a new sequence "Sequence".
- In "Sequence", create a parameter "Parameter" of type "Number".
- Change the numeric format of "Parameter" to Binary with a minimum of 16 digits and *without radix*, ie. "%.16b". (In the other sequence file I used "%#.16b".)
-> Intention: I want to see the supplied parameter value in this numeric format when debugging or converting to a string using Str().
- Still in "Sequence", create a local "Local" of type "Number".
- Change the numeric format of "Local" to the same as above, "%.16b".
-> Intention: I want to demonstrate your way here, which actually works (I can use it as the "reference string" of the yet-to-be-defined message box), but does in an indirect way what I want to do directly using only sequence parameters.
- Insert a "Statement" step in "Sequence".
- Of "Statement", "Edit Expression" and use "Locals.Local = Parameters.Parameter" as the expression.
- Insert a "Message Popup" step in "Sequence".
- Of "Message Popup", do "Edit Message Settings", and use the following expression as the Message Expression:
"I have this: " + Str(Parameters.Parameter) + "\n" +
"I want this: " + Str(Locals.Local)
- Insert a "SequenceCall" step in MainSequence.
- Point "SequenceCall" to sequence "Sequence" of the current file and supply exactly the literal value 26 for the parameter.
- In "MainSequence", create a local "Local" of type "Number".
- Change the numeric format of this "Local" to something very dangerous, eg. "%9.16o".
- Assign the exact numeric value 4616 to this "Local" variable.
-> Intention: I want to demonstrate that there are cases where a propagation of numeric formats to subsequences can actually be more than a mere nuisance.
- In "MainSequence", insert a second Sequence Call step, "SequenceCall_2".
- Let "SequenceCall_2" call the same sequence "Sequence", but supply Locals.Local for the parameter.
- Now run the sequence file in "Single Pass" mode.
- In the first popup, you see that I get the (binary!) representation 0000000000011010 only for the local variable, but I also want it for the parameter value.
- In the second popup, you see that I get the (octal!) representation 0000000000011010 for the parameter value, which would be correct (for what I want) if I had supplied the decimal literal 26 again. You see that the binary representation is something entirely different here!
I hope you now get the point. Thanks for answering!
Attachments:
numeric-format-02c.seq 35 KB -
How to check non-numeric value in a field
Hi all,
I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
Please help. Waiting.........Might have to add a space in the string...
if not mvalue co ' 0123456789'.
* error
endif.
if you allow decimals and commas...
if not mvalue co ' .,0123456789'.
* error
endif. -
How do you convert numeric values into english words?
I am interested in creating a field in adobe acrobat that references a total dollar amount field. I want the java script to convert the numeric number into a written word, such as $59.59 as Fifty Nine and 59/100. I have no experience writing java script code and would really like some help on how this can get done. Its also important to embed in the programming that if their is no numeric value to reference, then nothing get referenced. This means an empty text box. Thanks for any help.
Im using the below script...... I'm a complete novice at this and helping a friend out with it.
Any info is appreciated.
aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];
aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine",
"Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen",
"Nineteen" ];
function ConvertToHundreds(num)
var cNum, nNum;
var cWords = "";
num %= 1000;
if (num > 99) {
/* Hundreds. */
cNum = String(num);
nNum = Number(cNum.charAt(0));
cWords += aOnes[nNum] + " Hundred";
num %= 100;
if (num > 0)
cWords += " and "
if (num > 19) {
/* Tens. */
cNum = String(num);
nNum = Number(cNum.charAt(0));
cWords += aTens[nNum - 2];
num %= 10;
if (num > 0)
cWords += "-";
if (num > 0) {
/* Ones and teens. */
nNum = Math.floor(num);
cWords += aOnes[nNum];
return cWords;
function ConvertToWords(num)
var aUnits = [ "Thousand", "Million", "Billion", "Trillion", "Quadrillion" ];
var cWords = (num >= 1 && num < 2) ? "Dollar and " : "Dollars and ";
var nLeft = Math.floor(num);
for (var i = 0; nLeft > 0; i++) {
if (nLeft % 1000 > 0) {
if (i != 0)
cWords = ConvertToHundreds(nLeft) + " " + aUnits[i - 1] + " " + cWords;
else
cWords = ConvertToHundreds(nLeft) + " " + cWords;
nLeft = Math.floor(nLeft / 1000);
num = Math.round(num * 100) % 100;
if (num > 0)
cWords += ConvertToHundreds(num) + " Cents";
else
cWords += "Zero Cents";
return cWords;
You can use the following script for the custom calculation for the words field when the number field is named "Number":
event.value = "";
var f = this.getField("Number");
if(f.valueAsString != "") {
event.value = ConvertToWords(f.value); -
How to 'Only' allow Numeric value in the Edit Box in AcroDialogs
Hi all,
I've create an AcroDialog wizard, I need to allow onlu numeric values in the Edit Box. Can someone please help me with this validation?
Regards,
ChrisThere isn't a keystroke event for custom JavaScript dialogs, or any proper interactive events for the fields. You can validate fields when the user presses OK, and you can test fields when the user changes focus by setting the "Action" property for the field. But the only practical way to restrict user input to numbers is to use George's suggestion. There is a number property for the fields but it has an undesirable side affect and I never use it.
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/javascript.html
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article) -
How to get the numeric value of DocTotal from UI API
When I hit the ADD button I need to get the DocTotal from the UI API !
All I have is the EditText which gives it in string and the problem is to double.Parse it
it's a pain to do it while there is CultureInfo related issue with it.
So It would be wise to get the numeric value directly from the UI API instead of getting the DocTotal by string and trying to convert it. So is there any way to get the numrci value of DocTotal from UI API ?Hello Marc,
Here is a function which considering the Culture Info and always working. You can speed it up by using extending admininfo to global vairables, and loading the values at startup of the addon.
Use the oEditText.value.ToString() to convert into into the doulbe number:
Public Function _string2double(ByVal s As String) As Double
Dim d As Double
' This part is fast, when regional settings equal to sap B1 settings:
Try
d = Convert.ToDouble(s)
d = Math.Round(d, 6)
Return d
Catch
End Try
' Speed up performance: extend CompaneService variables to global variables and query them at addon startup.
Try
Dim nfi As System.Globalization.NumberFormatInfo = System.Globalization.CultureInfo.CurrentCulture.NumberFormat
Dim oCompanyService As SAPbobsCOM.CompanyService = oCompany.GetCompanyService()
Dim oAdminInfo As SAPbobsCOM.AdminInfo = oCompanyService.GetAdminInfo()
Dim sbodsep As String = oAdminInfo.DecimalSeparator
Dim sbotsep As String = oAdminInfo.ThousandsSeparator
If s.IndexOf(Space(1)) > 0 Then
If oAdminInfo.DisplayCurrencyontheRight = BoYesNoEnum.tYES Then
s = s.Substring(0, s.IndexOf(Space(1)))
Else
s = s.Substring(s.IndexOf(Space(1)), s.Length - s.IndexOf(Space(1)))
End If
End If
Dim s1 As String = s.Replace(sbotsep, nfi.NumberGroupSeparator)
s1 = s1.Replace(sbodsep, nfi.NumberDecimalSeparator)
d = Convert.ToDouble(s)
d = Math.Round(d, 6)
Return d
Catch
Return 0
End Try
End Function
Regards,
J.
Edited by: János Nagy on Oct 7, 2009 8:55 AM -
How to display 'Alpha numeric values' in lower character?
Hi,
We have 'Alpha numeric value' in one column and i need to display alphabets in lower character.
I tried but throwing error.
SQL> select * from a439487.ora_dev_inventory;
HOST_NM HA INV_DT
SMMK94 - 21-AUG-08
SQL> select to_lower(HOST_NM) from a439487.ora_dev_inventory;
select to_lower(HOST_NM) from a439487.ora_dev_inventory
ERROR at line 1:
ORA-00904: "TO_LOWER": invalid identifier
I want 'HOST_NM' to be displayed in lower value.
I need o/p like 'smmk94'.
Any idea?Where did you find the TO_LOWER function? Can you
show us?I would guess it was just an assumption based on the fact we have to_char, to_date, to_number...
;) -
How to write a checkbox value in items
Hi there,
is there a way to write a value belonging to a checkbox in an item? [apex 4.2]
Lets say I have the following statement :
SELECT TRUNC (SYSDATE, 'MON')+rownum-1 as DAYS
FROM DUAL
CONNECT BY LEVEL <= 31
Now I want to add a checkbox and this checkbox should write all checked values in a Page Item called P5_DAYS
And I want that these values are deleted if the checkbox is unselected.
Is there a way to do this (maybe without jquery?). Does Apex 4.2 has some built in features to handle this?I've used few (if any) plug-ins so I'm helpless there. If this were a simple page item like P3_POSITION, then if the page is submitted so P3_POSITION has a value, that value can be referenced on any page as :P3_POSITION (or &P3_POSITION. (include period)).
To clarify, the value is stored in the session when the page is submitted. If you can't submit the page because you don't want all the values updated int he session than there are ways to submit the value of selected items.
Is that what you want to know?
Howard -
How to set the intial Value for a single radiobutton in a Radio Group
Hi All,
I have a radiogroup with 3 buttons. The Names of the RadioGroup are driven from a XXVO.
3 Radion Buttons:
* X
* XX
* XXX
When the Page loads i want to make one Radio button XXX to be the default , please suggest how do i do it.
Note : The radiobutton values are coming from VO
ThanksHi ,
As AJ said create 3 radio buttons in ur page and assign to one radio group,,
OAMessageRadioButtonBean appleButton3 =
(OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne21");
appleButton3.setName("serviceAgreementGroup");
appleButton3.setValue("RW");
OAMessageRadioButtonBean orangeButton3 =
(OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo21");
orangeButton3.setName("serviceAgreementGroup");
orangeButton3.setValue("NW");
---For radio button u can check in page it self.
Regards
Meher Irk
Edited by: Meher Irk on Nov 23, 2010 2:47 PM
Maybe you are looking for
-
How To Properly Delete a User Profile on Windows 7 in a Domain environment
I have not been able to find an answer that matches the issue I'm facing. I had recently setup a laptop for a user and soon after, he was experiencing issues that I thought might be profile related. So, I did what always worked for me on prior versio
-
How to make a control table with the same number of rows of its itab
I'm creating a control table, but it always have the maximum number of lines possible. How can I make it so that it has only the same number of rows of it's internal table?
-
Every since I nstalled maverick I have not been able to open folders through my home network. A dialoge box says The folder can't be opened because you don't have permission to see its contents. I have always used an open network and never had issue
-
Organizational Structure Search Help in Webdynpro ABAP
Hi, I need an organizational structure search help in webdynpro abap. It should list the organizational structure in tree view like RH_OBJID_REQUEST lists. I tried to use RH_OBJID_REQUEST function in webdynpro but I got " A RAISE statement in the pro
-
How to store data for an account individually
hi there, may i know how do u store data for an account individually. let's say i have an application for all users. but i do have a log in module since i have a module where users can enter thier own information into the system like appoinments. sin