Loading…
Loading…
方法名称: set_date_time
方法ID: 0x4104
方法标签: Set Real-Time Clock
方法描述: 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(838),0,4442);
- _get_dev_var_value(literal_string(839),0,4443);
- _iassign(4439,1);
- send(89,status);
- if (status[0])
- {
- display_response_status(89,status[0]);
- }
请登录以获得完整内容