Loading…
Loading…
Method Name: set_date_time
Method ID: 0x4156
Method Label: Set Real-Time Clock
Method Help: Method to set date and time to set the real-time clock in the field device
- {
- char status[3];
- long currTime;
- currTime = GetCurrentTime();
- _iassign(4442,Time_To_Date(currTime));
- _iassign(4443,timet_To_TIME_VALUE(currTime));
- _get_dev_var_value(literal_string(832),0,4442);
- _get_dev_var_value(literal_string(833),0,4443);
- _iassign(4439,1);
- send(89,status);
- if (status[0])
- {
- display_response_status(89,status[0]);
- }
Please login for more