DTSetTimeZone
Function Block - Set the time zone.
This function block is specific for PCMM2G only.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Execute |
BOOL |
FALSE, TRUE |
N/A |
No default |
If TRUE, request to set the time zone. |
TimeZone |
STRING |
No range |
N/A |
No default |
The time zone the controller should use. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Done |
BOOL |
FALSE, TRUE |
N/A |
If TRUE, the command completed successfully. |
Error |
BOOL |
FALSE, TRUE |
N/A |
If TRUE, an error has occurred. |
ErrorID |
DINT |
No range |
N/A |
Indicates the error if the Error output is set to TRUE. Error Codes
|
Remarks
None
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
// configure the time zone
Inst_DTSetTimeZone( bSetDTZone, TimeZone );
if Inst_DTSetTimeZone.Done then
bSetDTZone := false;
bError := Inst_DTSetTimeZone.Error;
ErrorID := Inst_DTSetTimeZone.ErrorID;
end_if;
See Also