Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JasonT

Pages: [1]
1
Support Questions / Re: Pulling a string from a CompactLogix...
« on: January 23, 2018, 12:25:21 PM »
The tag I am reading is only part of the string. The string is WX,OK,A,W5G18023$r$1D14198085 and the .DATA[6] is the tag that I am reading which is the character "A" in the string.
Since that is the only information I need from that string, that is the tag I used

2
Support Questions / Re: Pulling a string from a CompactLogix...
« on: January 23, 2018, 11:48:46 AM »
Here is the entire output log...


Quote
'WARREN 5805.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMI\bin\Debug\WARREN 5805.exe'. Symbols loaded.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'D:\...\HMI\AdvancedHMI\bin\Debug\AdvancedHMIDrivers.dll'. Symbols loaded.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'D:\...\HMI\AdvancedHMI\bin\Debug\MfgControl.AdvancedHMI.Drivers.dll'. Module was built without symbols.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'D:\...\HMI\AdvancedHMI\bin\Debug\AdvancedHMIControls.dll'. Symbols loaded.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'D:\...\HMI\AdvancedHMI\bin\Debug\MfgControl.AdvancedHMI.Controls.dll'. Module was built without symbols.
'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
Value as Hex string=65
Exception thrown: 'System.ArgumentException' in mscorlib.dll
An exception of type 'System.ArgumentException' occurred in mscorlib.dll but was not handled in user code
Destination array is not long enough to copy all the items in the collection. Check array index and length.

'WARREN 5805.exe' (CLR v4.0.30319: WARREN 5805.exe): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

3
Support Questions / Re: Pulling a string from a CompactLogix...
« on: January 23, 2018, 11:36:52 AM »
I was a bonehead...lol...I didn't put it in the right place.

As for the Output it is saying the same thing as before that the destination array is not long enough

4
Support Questions / Re: Pulling a string from a CompactLogix...
« on: January 23, 2018, 10:45:31 AM »
Getting an error that says...

Quote
Severity   Code   Description   Project   File   Line   Suppression State
Error   BC30389   's' is not accessible in this context because it is 'Friend'.      58   Active

5
Support Questions / Re: Pulling a string from a CompactLogix...
« on: January 23, 2018, 08:58:17 AM »
First Thank you for the help on this issue. Sorry it has taken me so long to get back to this one, I was waiting on the customer. I have used the code provided and I am now getting an error when I try and run the solution. Here is the error...

Quote
System.ArgumentException
  HResult=0x80070057
  Message=Destination array is not long enough to copy all the items in the collection. Check array index and length.
  Source=mscorlib
  StackTrace:
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.BitConverter.ToInt64(Byte[] value, Int32 startIndex)
   at MfgControl.AdvancedHMI.frmManual.ExtractString(String s) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMI\frmManual.vb:line 64
   at MfgControl.AdvancedHMI.frmManual.BasicLabel1_ValueChanged(Object sender, EventArgs e) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMI\frmManual.vb:line 57
   at AdvancedHMIControls.BasicLabel.OnvalueChanged(EventArgs e) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMIControls\Controls\BasicLabel.vb:line 729
   at AdvancedHMIControls.BasicLabel.set_Value(String value) in D:\Current Projects\JOBS\WARREN\CMT LASER\HMI\AdvancedHMIControls\Controls\BasicLabel.vb:line 89

Any help would be great!

Thank you in advance


Also as an FYI...the PLC string a SINT with 82 bytes

6
Support Questions / Pulling a string from a CompactLogix...
« on: January 12, 2018, 03:31:50 PM »
Hello all,

I am trying to pull a string from a CompactLogix and display the response in a basic label. I used the string tag in the label PLCValue and I see a response, However it displays as the ASCII code. Is there a way to display it as a letter instead of the ASCII for the letter?

Thanks for any help in this matter.

Pages: [1]