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 have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
101
Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
22
Views
462
this a program to send data to barcode printer I want to integrate a new printer in a new machine and i wanted to adapt the old prgram on it but I...
Replies
4
Views
174
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
67
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
26
Views
563
Back
Top Bottom