GEFCOMM.VB help

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
hi friends;
i want to use GEFCOMm to build a interface in VB6.0. I read the document but i confuse how the data return from the following method
Status = gefReadPLCMemory(1, PLCMemoryType, PLCAddress, DataLength, DataValues())

Suppose i write following
Status = gefReadPLCMemory(1, R , 154, 2, 0)
IS it right or can i get the value in status variable?
I want to read some individual registers and set the return value in textbox which assign individually to each registers.
Regards
 
I've never used GEFCOMMVB myself, but instead of the letter R in the parameters list, you may need to use the number 8.

Each of the PLC memory types (%I, %Q, %M, %R, etc is identified by a number in the SNP protocol. Details can be found in the serial communications manual, GFK-0582.
 
Hi sir;
Yes i used it 8 instead of R but i am confuse this fuction return LOng and status is also declae long but the value in it is wrong always 240 for every register.
what about the data length and datavalues()?
Regards
 

Similar Topics

I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
9
Views
149
Hi all I need help on this As in my project used Schneider TM241 controller. Now I want to communicate Elite energy meter with controller by...
Replies
3
Views
117
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
135
Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
56
Hi, We have an application that has a device that goes through a reboot (appears un-graceful) What then happens is the MVI module appears to hang...
Replies
0
Views
59
Back
Top Bottom