F231_SEC_TO_DTBCD

Conversion of seconds into time data

This function converts a specified number of seconds into date and time. The time data is calculated from 01/01/2001 at 00:00 hours.

Parameters

Input

s_SEC (DWORD, DINT, UDINT, DATE, TOD, DT)

Area in which the number of seconds are stored (32 bits)

Output

d_DTBCD (DTBCD)

Head area in which time data is stored

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the specified address using the index modifier exceeds a limit.

  • if the number of seconds s_SEC >= 16#BC191380 (valid until 31 Dec. 2100 23:59:59).

  • if the data memory of d_DTBCD exceeds the area.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the specified address using the index modifier exceeds a limit.

  • if the number of seconds s_SEC >= 16#BC191380 (valid until 31 Dec. 2100 23:59:59).

  • if the data memory of d_DTBCD exceeds the area.

Example

Related topics:

Modified on: 2019-01-25Feedback on this pagePanasonic hotline