MCPcopy Create free account
hub / github.com/Beckhoff/ADS / readByNameExample

Function readByNameExample

example/example.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void readByNameExample(std::ostream &out, const AdsDevice &route)
69{
70 AdsVariable<uint8_t> readVar{ route, "MAIN.byByte[4]" };
71
72 out << __FUNCTION__ << "():\n";
73 for (size_t i = 0; i < 8; ++i) {
74 out << "ADS read " << std::hex << (uint32_t)readVar << '\n';
75 }
76}
77
78static void readWriteExample(std::ostream &out, const AdsDevice &route)
79{

Callers 1

runExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected