ACCON-NetLink-USB compact

natarajan

Level-1
Beiträge
39
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi,
I am using Accon-Netlink-USB-compact to establish PROFIBUS connection between PC and drive ( not the PLC). I am not able to read and write the device parameter. I used the API's (drive_readmix, drive_writeMix) but still I couldnt read/write to the device.

I have a doubt , is it possible to use Accon-Netlink-USB compact and establish the PROFIBUS connection without PLC ? if it is so, please tell me how to do read and write from/to device..


Thanks alot,

natarajan.
 
I think you are using ACCON-AGLink. Do you get a connection to the drive? If not, in which function do you get an error? What is the error code?
 
Zuviel Werbung?
-> Hier kostenlos registrieren
yes i am using Accon-AGLink latest version ,
open connection, dial-up , init adapter (adapter is detecting), exit adapter, hang-up, close device are successful..
AGL_DriveReadMix, AGL_DrivewriteMix functions producing error.
error code is -1048569 ( the error code is Device Not Opened)...
How to make read and write??


Thanks..
 
Zuletzt bearbeitet:
You got AGL40_SUCCESS from AGL_InitAdapter? To read parameters from the drive, you must use AGL40_PLCConnect with the busaddress of the drive to get a connection to the drive. Which result do you get from this function?
 
Yes, I got AGL40_SUCCESS from AGL_InitAdapter.. The API AGL40_PLCconnect is not successful error code is ( -720868 ) which means PLC not found..

I have entered the bus parameters properly still i am getting error in PLCConnect.. Please reply..


Thanks.
 
Zuletzt bearbeitet:
Please post you code. 2 is normal the address of the plc and not the address of the drive! You must use the profibusaddress of the drive for AGL_PLCConnect.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
code :

int doPLCconnect(int timeout, long userval)
{
int connnr = 1;
int devnr = 0;
int plcnr = 2;
int result = AGL_PLCConnect(devnr, plcnr, &connnr, timeout, userval);


if (result == AGL40_SUCCESS)
{
std::cout<<"plc connect is successfull"<<std::endl;
return 0;
}
std::cout<<"error in PLC connect"<<std::endl;
return result;
}

this is the function I used for PLC connect..
 
Now I changed my profibus address to 3..
Result --- The drive is not detecting...

why my drive is not detecting ??? what should i do ?
 
Zuletzt bearbeitet:
I used the above API Getlifelist.. The function result is success but none of the address are in online.,..
Screenshot :del.jpg




Waiting for ur valuable reply: Confused:

Thanks..
 
Zuletzt bearbeitet:
The result of AGL_LifeList is AGL40_SUCCESS. What is in the lifelist-array, the array with the active and passive stations?
I think it is best, if you use the api-guide for testing and displaying the results.
If realy nobody ist online, you must fix your bus problems first.
 
Hi, I have entered the bus parameters properly and there is no termination problem..

Same problem I couldnt see any devices online.... confused... Tell me any other troubleshooting method..
Thanks..
 
Zuviel Werbung?
-> Hier kostenlos registrieren
If you terminate at the plc connector and the plc is switched off, there is no propper termination. So you have a termination problem. And because of that: power on your PLC and try it again.
 
If i put the termination at the connector to OFF and PLC ON the code i am getting when using PLCConnect function:- is
An error happend at the following" PLCConnect :Connection end received"..

If i put the termination at the connector to ON and PLC ON the code i am getting when using PLCConnect function:- is
An error happend at the following: PLCConnect :pLC not found

I tested using APi guide..


what does it means??

Thanks...
 
Zuletzt bearbeitet:
Zurück
Oben