PLCDate

The PLCDate function determines how we store date in PLC.

Syntax :

PLCDate(YYMM,DDHH,MMSS)
Parameters Description
YYMM Year and Month in PLC as date.
DDHH day and hour in Plc as date and time.
MMSS minutes and seconds in PLC as time.

Examples :

Example 1

dPLCDate = PLCDate(0807,3110,2335)
DEBUG(dPLCDate)

Result :

dPLCDate
= 7/31/2008 10:23:35 AM

Example 2

dPLCDate = PLCDate(0807,3113,1015)
DEBUG(dPLCDate)

Result :

dPLCDate
= 7/31/2008 01:10:15 PM