Hello everybody. I am currently trying to retrieve the Integer data file values from a micrologix 1200 via VB6. I have constructed a string that is being sent out the com1 port of my PC to the PLC, but believe I have something incorrect with the string as the value returned are not the value in the N7 data file. As you are aware AB is real helpful in documenting this, and I can't afford RSLinx Pro to retrieve the values thru DDE/OPC. Any help with this would be appreciated. Below is the string I am using to retrieve data:
com$ = Chr(16) + Chr(2) 'Start DF1 message
com$ = com$ + Chr(1) + Chr(0) 'destination / source node addr
com$ = com$ + Chr(1) + Chr(0) 'command / status
com$ = com$ + Chr(transnbr%) 'transaction number
com$ = com$ + Chr(0) + Chr(0) 'address
com$ = com$ + Chr(0) + Chr(2) 'size
com$ = com$ + Chr(16) + Chr(3) 'End DF1 message
followed by the BCC for this string
The PLC responds with the DLE/ACK and then returns the data to me, but as I said it isn't the value of N7:0 when viewed with RSLogix500.
Again, any help with this would be appreciated.
com$ = Chr(16) + Chr(2) 'Start DF1 message
com$ = com$ + Chr(1) + Chr(0) 'destination / source node addr
com$ = com$ + Chr(1) + Chr(0) 'command / status
com$ = com$ + Chr(transnbr%) 'transaction number
com$ = com$ + Chr(0) + Chr(0) 'address
com$ = com$ + Chr(0) + Chr(2) 'size
com$ = com$ + Chr(16) + Chr(3) 'End DF1 message
followed by the BCC for this string
The PLC responds with the DLE/ACK and then returns the data to me, but as I said it isn't the value of N7:0 when viewed with RSLogix500.
Again, any help with this would be appreciated.