DataSetAiMin

 

The 'DataSetAiMin' function changes the 'Minute Data' of the AI tag.

 

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

 

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.

int min : Min.

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.

float val_curr : New Instantaneous Value that you want to set.

 

Return Value

None

 

Example

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

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

 

Relate items)

@DataGetAiDay()

@DataGetAiHour()

@DataGetAiMin()

@DataGetAiMon()

@DataGetAiYear()

@DataGetDiDay()

@DataGetDiHour()

@DataGetDiMin()

@DataGetDiMon()

@DataGetDiYear()

@DataSetAiHour()

Example Project to load the data of the specified time