binary conversion, tying arrays to bits with text files (VB source code included)

Altair

Member
Join Date
Feb 2003
Posts
28
Hello everyone...
Attached is the source code to a vb application. What I had to do was take faults off a slc/plc and attach an appropriate 'Maintenance Code' to it.
There were three different processors, 1 with 53 faults, the other two have up to 75 faults (not set yet)... anyways... I created 3 text files that (depending on the site selection) are used.
Then instead of reading bit by bit I just used the integer value (signed integers).
The 3 text files need to be located in the 'C:\' directory. Though by changing the path in the program the files can be located anywhere.
Take it and use it for whatever. This site has helped me tremendously.




Regards,
Russ
 
Other choice is use Access-datatables/processor.
Tables are simple, filed 1 is Primary-key number what is equal than error-number from plc, field 2 have description for etc..
One table/plc.
 
It was written in vb6...

Sorry about that.. if you'd like I could send the compiled executable... so you can see how it works...



Regards,
Russ
 

Similar Topics

Hi I'm using a Mitsubishi PLC (FX Series) and want to convert 4 inputs from binary format to decimal. I can do this via ladder logic using...
Replies
4
Views
6,666
Hey, I'm looking for a bit of guidance on some vba code in RSView32. For the record I know zero (I know its shameful) VBA code. What I'm trying...
Replies
7
Views
5,588
I am trying to mask the first 8 digits of binary code in a Allen Bradley remote I/O module for alarm tracking puposes. I only need to read the...
Replies
3
Views
3,223
When I converted the PV1200 to ME for a PV+, Most of the addresses I can go in and change to the appropriate block transfer. But with the binary...
Replies
6
Views
1,797
In any Logix5000 processor and any version from 15 through 17, I am looking for a way to convert a decimal number of 1 through 8 to a binary that...
Replies
4
Views
4,430
Back
Top Bottom