F230_DTBCD_TO_SEC

Time data conversion into seconds

This function converts time data (date and time) into the number of seconds. It calculates the time span between the specified time date and 01/01/2001 at 00:00 hours. The time data is specified in the DUT "DTBCD".

Parameters

Input

s_DTBCD (DTBCD)

Area in which the input time data is stored

Output

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

Area in which the converted second information is stored (32 bits)

Error flags

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

  • if values other than BCD are specified for s_DTBCD.

  • if the value which exceeds the range in the time data of 's' is specified.

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

  • if values other than BCD are specified for s_DTBCD.

  • if the value which exceeds the range in the time data of 's' is specified.

Related topics:

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