Fan3Stage (FB) ¶ FUNCTION_BLOCK Fan3Stage Control a N-stage fan (N 1..3) Choose the number of stages prior to xEnable => TRUE. Fan3Stage does handle start delay delays switching from on stage to another one stop delay Hardware is supposed to be controlled using xStage1 .. xStage3 usiStageOut is supposed to be used in visualisation to represent the actual stage. InOut: Scope Name Type Initial Comment Input xEnable BOOL TRUE Enable usiNumStages USINT (1..3) 3 Number of stages - 1 .. 3 usiStage USINT (0..3) 0 Stage to run with - 0 => off, or stage 1 .. 3 tStartDelay TIME TIME#0ms Start delay. tDelay12 TIME TIME#0ms Delay to switch stage 1 => stage 2 tDelay23 TIME TIME#0ms Delay to switch stage 2 => stage 3 tDelay32 TIME TIME#0ms Delay to switch stage 3 => stage 2 tDelay21 TIME TIME#0ms Delay to switch stage 2 => stage 1 tStopDelay TIME TIME#0ms Stop delay - continue to run in stage 1 after usiStage was set to 0. xReset BOOL FALSE Reset itfDateTimeProvider Util.IDateTimeProvider Globals.g_dtpDateTimeProvider Source for the current date and time information in milliseconds since 1.1.1970 00:00:00.000 Output xStage1 BOOL Stage 1 xStage2 BOOL Stage 2 xStage3 BOOL Stage 3 usiStageOut USINT (0..3) Stage - 0 => off, or stage 1 .. 3 - supposed to be used in visualisation eState Fan3StageState Actual state xError BOOL Error indication eErrorID Error Error ID
Interfaces ¶ AsyncProperty IAsyncProperty (Interface) GetInstancePointer (Method) IPoolExtender IPoolExtender (Interface) GetRequest (Method) ScheduleRequest (Method)
AsyncProperty ¶ IAsyncProperty (Interface) GetInstancePointer (Method)
SysTimeRtcConvertHighResToDate (FUN) ¶ FUNCTION SysTimeRtcConvertHighResToDate : RTS_IEC_RESULT <description>Convert a high resolution timestamp to a structure format. Time values are always UTC!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertHighResToDate RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”IN”>Milliseconds since 1.1.1970 00:00:000 UTC</param> pDate SYSTIMEDATE <param name=”pDate” type=”OUT”>Structure format</param>
SysTimeRtcConvertHighResToLocal (FUN) ¶ FUNCTION SysTimeRtcConvertHighResToLocal : RTS_IEC_RESULT <description> Convert a high resolution timestamp [UTC] to a structure format [Localtime] </description> <errorcode name=”RTS_RESULT Result” TYPE=”ERR_OK”>Timestamp can be converted</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_FAILED”>Timestamp failed to convert</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_NOTIMPLEMENTED”>Conversion is not available on the target</errorcode> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertHighResToLocal RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”IN”>Milliseconds since 1.1.1970 00:00:000 [UTC]</param> pDate SYSTIMEDATE <param name=”pDate” type=”OUT”>Structure format [Localtime]</param>
SysTimeRtcConvertLocalToHighRes (FUN) ¶ FUNCTION SysTimeRtcConvertLocalToHighRes : RTS_IEC_RESULT <description> This function converts the time given by time structure [Localtime] into a High Resolution Time of format SysTime [UTC]. </description> <errorcode name=”RTS_RESULT Result” TYPE=”ERR_OK”>DATE can be converted</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_FAILED”>Date failed to convert</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_NOTIMPLEMENTED”>Conversion is not available on the target</errorcode> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertLocalToHighRes RTS_IEC_RESULT Inout pDate SYSTIMEDATE <param name=”pDate” type=”IN”>Structure format [Localtime]</param> pTimestamp SYSTIME <param name=”pTimestamp” type=”OUT”>Milliseconds since 1.1.1970 00:00:000 [UTC]</param>
SysTimeRtcHighResGet (FUN) ¶ FUNCTION SysTimeRtcHighResGet : RTS_IEC_RESULT <description>Returns the Rtc (realtime clock) value with a high resolution in UTC. <p>UTC time: current coordinated universal time; has replaced the Greenwich Mean Time. The time zones are given as positive or negative deviation from UTC.: e.g. „UTC+1“ corresponds to the Central European Time (CET) and ”UTC+2” corresponds to the Central European Summer Time (CEST)</p> </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcHighResGet RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”OUT”>Milliseconds since 1.1.1970 00:00:000 UTC</param>
SysTimeRtcHighResSet (FUN) ¶ FUNCTION SysTimeRtcHighResSet : RTS_IEC_RESULT <description>Set the Rtc (realtime clock) value with a high resolution.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcHighResSet RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”OUT”>Milliseconds since 1.1.1970 00:00:000 UTC</param>
RTS_SYSTIMEDATE (STRUCT) ¶ TYPE RTS_SYSTIMEDATE : STRUCT <description>Time and date in structured</description> InOut: Name Type Comment wYear UINT <element=”wYear” type=”IN”>Year (e.g. 2006)</element> wMonth UINT <element=”wMonth” type=”IN”>Month (1..12: January = 1, December = 12)</element> wDay UINT <element=”wDay” type=”IN”>Day of month (1..31)</element> wHour UINT <element=”wHour” type=”IN”>Hours after midnight (0..23)</element> wMinute UINT <element=”wMinute” type=”IN”>Minutes after hour (0..59)</element> wSecond UINT <element=”wSecond” type=”IN”>Seconds after minute (0..59)</element> wMilliseconds UINT <element=”wMilliseconds” type=”IN”>Milliseconds after second (0..999). Optional!</element> wDayOfWeek UINT <element=”wDayOfWeek” type=”IN”>Day of week (1..7: Monday = 1, Sunday = 7</element> wYday UINT <element=”wYday” type=”IN”>Day of year (1..365): January 1 = 1, December 31 = 364/365</element>
SYSTIMEDATE (ALIAS) ¶ TYPE SYSTIMEDATE : RTS_SYSTIMEDATE