Displaying Hex values in iFix

Marshy

Member
Join Date
Apr 2007
Location
Bath,UK
Posts
236
Hi Everyone,

Just wondering if anyone could help me with an issue I'm having? I'd like to display a fault code that is referenced in Hex on an iFix screen.
The IFix version is 5.8 and I'm using an IGS driver connected to an S7-1500 PLC. The AI datablock has no signal conditioing. I've tried referencing tag with node.Tagname.A_CV & node.Tagname.F_CV with Raw Formatting enabled with %x and %X. None of this has worked.
Does anyone know if it is possible and if so how do you do it?
Thanks in advance!

Rich
 
Got it working with a script in the end. A bit messy but it works

Code:
Dim intValue As Integer
Dim intIndex As Integer
Dim strHexValue As String
Dim strPicname As String
Dim txtBoxRead As Object
Dim txtBoxWrite As Object

strPicname = Me.Name
'intIndex = CInt(ReadValue("Fix32.PURFLEET.LMV5_FAULT_Index.F_CV", 2))

For intIndex = 0 To 3
    Set txtBoxRead = System.FindObject(strPicname & ".txtDetail" & intIndex)
    intValue = CInt(txtBoxRead.Caption)
    strHexValue = Hex(intValue)
    Set txtBoxWrite = System.FindObject(strPicname & ".txtErrorDetail_1" & intIndex)
    txtBoxWrite.Caption = strHexValue
Next
Exit Sub
 

Similar Topics

Ran into a strange problem. How do you display a Hexadecimal number on a PanleView 600? The PLC is a CompactLogix. The value is passed into...
Replies
4
Views
7,455
Does anyone know how to keep Hex numbers displayed in VersaPro? I enter in the Hex numbers, then when I reopen the folder, the numbers are...
Replies
7
Views
4,707
Hey everyone and anyone that can lend a helping hand. I have a project that I am being asked to add some animations of Solidworks or "3D" models...
Replies
6
Views
78
Using FTview ME to create an HMI screen. Simplest task is giving me trouble. How do I create an HMI tag that will allow the name of the current...
Replies
3
Views
84
Hello Folks, plc : micrologix 1500 The analog output from the loadcell is given to the plc. Using the SCP function I have scaled it into an...
Replies
3
Views
717
Back
Top Bottom