2024-12-03 10:36:06 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AdsDevice.h"
|
|
|
|
|
2024-12-09 09:41:04 +08:00
|
|
|
namespace Beckhoff
|
2024-12-03 10:36:06 +08:00
|
|
|
{
|
2024-12-09 09:41:04 +08:00
|
|
|
namespace Ads
|
2024-12-03 10:36:06 +08:00
|
|
|
{
|
2024-12-09 09:41:04 +08:00
|
|
|
#define IOADS_IGR_IODEVICESTATE_BASE 0x5000
|
|
|
|
#define IOADS_IOF_READDEVIDS 0x1
|
|
|
|
#define IOADS_IOF_READDEVNAME 0x1
|
|
|
|
#define IOADS_IOF_READDEVCOUNT 0x2
|
|
|
|
#define IOADS_IOF_READDEVNETID 0x5
|
|
|
|
#define IOADS_IOF_READDEVTYPE 0x7
|
|
|
|
|
2024-12-03 10:36:06 +08:00
|
|
|
struct ECatAccess {
|
|
|
|
ECatAccess(const std::string& gw, AmsNetId netId, const uint16_t port);
|
|
|
|
long ListECatMasters(std::ostream& os) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
AdsDevice device;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|