DataSetAiHour

 

The 'DataSetAiHour' function changes the 'Hour Data' of the AI tag.

 

void DataSetAiHour(string tag, int year, int mon, int day, int hour, float val_ave, float val_min, float val_max, float val_sum);

 

Note : Because this function stores the data to a file, it may take a long time to excute this function. If you use this function much, the execution speed of LocalMain program slows down. Therefore, it is better to use this function only when it is absolutely necessary.

 

Parameters

string tag : AI tag name.

int year : Year.

int mon : Month.

int day : Day.

int hour : Hour.

float val_ave : New Average Value that you want to set.

float val_min : New Minimum Value that you want to set.

float val_max : New Maximum Value that you want to set.

float val_sum : New Integration Value that you want to set.

 

Return Value

None

 

Example

@DataSetAiHour("AI_0000", 1999, 12, 9, 18, 1, 2, 3, 4);

Description : In the 'Hour Data' of the 'AI_0000' of 9th December 1999 18:05, '1', '2', '3', '4' are stored respectively.

 

Relate items)

@DataGetAiDay()

@DataGetAiHour()

@DataGetAiMin()

@DataGetAiMon()

@DataGetAiYear()

@DataGetDiDay()

@DataGetDiHour()

@DataGetDiMin()

@DataGetDiMon()

@DataGetDiYear()

@DataSetAiMin()

Example Project to load the data of the specified time