数据读取类申明与实现

#ifndef READPLCDATA_H
#define READPLCDATA_H

#include
#include "stdafx.h"



class ReadPlcData
{
public:
    
    ReadPlcData(AmsAddr* pAddr);
    ~ReadPlcData();

    static double plc_Data_axis1;
    static double plc_Data_axis2;
    static double plc_Data_axis3;
    static double plc_Data_axis4;
    static double plc_Data_axisX;
    static double plc_Data_axisY;

    static bool allPointOver;

    static double plc_Data_pointK;

    static void __stdcall Callback_axis1(AmsAddr* pAddr, AdsNotificationHeader* pNotification, ULONG hUser)
    {
        SYSTEMTIME              SystemTime, LocalTime;
        FILETIME                FileTime;
        LARGE_INTEGER           LargeInteger;
        TIME_ZONE_INFORMATION   TimeZoneInformation;

        plc_Data_axis1=(*(LONG *)pNotification->data)/10000.0;

        LargeInteger.QuadPart = pNotification->nTimeStamp;
        FileTime.dwLowDateTime = (DWORD

你可能感兴趣的:(机器人软件开发与算法,c++,qt)